%PDF- %PDF-
Direktori : /home/emtnaeewxm/www/src/EEM/FonctionnaliteBundle/Entity/ |
Current File : /home/emtnaeewxm/www/src/EEM/FonctionnaliteBundle/Entity/Historique.php |
<?php namespace EEM\FonctionnaliteBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Historique * * @ORM\Table(name="historique") * @ORM\Entity(repositoryClass="EEM\FonctionnaliteBundle\Repository\HistoriqueRepository") */ class Historique { /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Column(name="entity", type="string", length=255, nullable=true) */ private $entity; /** * @var int * * @ORM\Column(name="entity_id", type="integer", nullable=true) */ private $entityId; /** * @var int * * @ORM\Column(name="qte", type="integer", nullable=true) */ private $qte; /** * @var int * * @ORM\Column(name="qte_detail", type="integer", nullable=true) */ private $qteDetail; /** * @var int * * @ORM\Column(name="qte_gros", type="integer", nullable=true) */ private $qteGros; /** * @var string * * @ORM\Column(name="type", type="string", length=255, nullable=true) */ private $type; /** * @var string * * @ORM\Column(name="operation", type="string", length=255, nullable=true) */ private $operation; /** * @var \DateTime * * @ORM\Column(name="createdAt", type="datetime", nullable=true) */ private $createdAt; /** * @var string * * @ORM\ManyToOne(targetEntity="EEM\ArticleBundle\Entity\Article" , inversedBy="historiques") */ private $article; public function __construct() { $this->createdAt = new \DateTime(); } /** * Get id * * @return int */ public function getId() { return $this->id; } /** * Set entity * * @param string $entity * * @return Historique */ public function setEntity($entity) { $this->entity = $entity; return $this; } /** * Get entity * * @return string */ public function getEntity() { return $this->entity; } /** * Set type * * @param string $type * * @return Historique */ public function setType($type) { $this->type = $type; return $this; } /** * Get type * * @return string */ public function getType() { return $this->type; } /** * Set createdAt * * @param \DateTime $createdAt * * @return Historique */ public function setCreatedAt($createdAt) { $this->createdAt = $createdAt; return $this; } /** * Get createdAt * * @return \DateTime */ public function getCreatedAt() { return $this->createdAt; } /** * Set article * * @param \EEM\ArticleBundle\Entity\Article $article * * @return Historique */ public function setArticle(\EEM\ArticleBundle\Entity\Article $article = null) { $this->article = $article; return $this; } /** * Get article * * @return \EEM\ArticleBundle\Entity\Article */ public function getArticle() { return $this->article; } /** * Set qte * * @param integer $qte * * @return Historique */ public function setQte($qte) { $this->qte = $qte; return $this; } /** * Get qte * * @return integer */ public function getQte() { return $this->qte; } /** * Set operation * * @param string $operation * * @return Historique */ public function setOperation($operation) { $this->operation = $operation; return $this; } /** * Get operation * * @return string */ public function getOperation() { return $this->operation; } /** * Set entityId * * @param integer $entityId * * @return Historique */ public function setEntityId($entityId) { $this->entityId = $entityId; return $this; } /** * Get entityId * * @return integer */ public function getEntityId() { return $this->entityId; } /** * Set qteDetail * * @param integer $qteDetail * * @return Historique */ public function setQteDetail($qteDetail) { $this->qteDetail = $qteDetail; return $this; } /** * Get qteDetail * * @return integer */ public function getQteDetail() { return $this->qteDetail; } /** * Set qteGros * * @param integer $qteGros * * @return Historique */ public function setQteGros($qteGros) { $this->qteGros = $qteGros; return $this; } /** * Get qteGros * * @return integer */ public function getQteGros() { return $this->qteGros; } }