Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Map a FLOW model onto an exising table.
<?php
namespace Typofree\Typo3Benchmark\Domain\Model;
/* *
* This script belongs to the TYPO3 Flow package "Typofree.Typo3Benchmark".*
* *
* */
use TYPO3\Flow\Annotations as Flow;
use Doctrine\ORM\Mapping as ORM;
/**
* @Flow\Entity
* @ORM\Table(name="details")
*/
class ImportMeasurement {
/**
* @var string
* @ORM\Id
* @ORM\Column(name="id")
* @ORM\GeneratedValue
*/
protected $persistenceObjectIdentifier;
/**
* @var string
* @ORM\Column(name="url")
*/
protected $url;
/**
* @var integer
* @ORM\Column(name="wt")
*/
protected $wallTime;
/**
* @var integer
* @ORM\Column(name="cpu")
*/
protected $cpuTime;
/**
* @var integer
* @ORM\Column(name="pmu")
*/
protected $peakMemoryUsage;
/**
* @var integer
* @ORM\Column(name="ct")
*/
protected $callCount;
/**
* @var DateTime
* @ORM\Column(name="timestamp")
*/
protected $timestamp;
/**
* @var integer
* @ORM\Column(name="imported")
*/
protected $imported;
/**
* @var string
* @ORM\Column(name="hash")
*/
protected $hash;
/**
* @return int
*/
public function getCallCount() {
return $this->callCount;
}
/**
* @return int
*/
public function getCpuTime() {
return $this->cpuTime;
}
/**
* @return string
*/
public function getHash() {
return $this->hash;
}
/**
* @return int
*/
public function getPeakMemoryUsage() {
return $this->peakMemoryUsage;
}
/**
* @return string
*/
public function getPersistenceObjectIdentifier() {
return $this->persistenceObjectIdentifier;
}
/**
* @return string
*/
public function getUrl() {
return $this->url;
}
/**
* @return int
*/
public function getWallTime() {
return $this->wallTime;
}
/**
* @return \Typofree\Typo3Benchmark\Domain\Model\DateTime
*/
public function getTimestamp() {
return $this->timestamp;
}
/**
* @return int
*/
public function getImported() {
return $this->imported;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.