src/Entity/InscriptionFileLog.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. /**
  8.  * @ORM\Entity(repositoryClass="App\Repository\InscriptionFileLogRepository")
  9.  * @ORM\Table(name="mmpp_inscription_file_log")
  10.  * @ORM\HasLifecycleCallbacks
  11.  */
  12. class InscriptionFileLog
  13. {
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\Column(type="integer")
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     protected $id;
  20.     /**
  21.      * @Gedmo\Timestampable(on="create")
  22.      * @ORM\Column(type="datetime", name="created_on")
  23.      * @var \DateTime
  24.      */
  25.     protected $createdOn;
  26.     /**
  27.      * @Gedmo\Timestampable(on="update")
  28.      * @ORM\Column(type="datetime", name="updated_on")
  29.      * @var \DateTime
  30.      */
  31.     protected $updatedOn;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity="Center", inversedBy="inscriptionlogs")
  34.      * @ORM\JoinColumn(name="center_id", referencedColumnName="id")
  35.      */
  36.     protected $center;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity="Preinscription", inversedBy="logs")
  39.      * @ORM\JoinColumn(name="preinscription_id", referencedColumnName="id")
  40.      */
  41.     protected $preinscription;
  42.     /**
  43.      * @ORM\ManyToOne(targetEntity="InscriptionFile", inversedBy="logs")
  44.      * @ORM\JoinColumn(name="inscriptionfile_id", referencedColumnName="id")
  45.      */
  46.     protected $inscriptionFile;
  47.     /**
  48.      * Constructor
  49.      */
  50.     public function __construct()
  51.     {
  52.     }
  53.     /**
  54.      * Get id
  55.      *
  56.      * @return integer
  57.      */
  58.     public function getId()
  59.     {
  60.         return $this->id;
  61.     }
  62.     /**
  63.      * Set createdOn
  64.      *
  65.      * @param \DateTime $createdOn
  66.      * @return InscriptionFileLog
  67.      */
  68.     public function setCreatedOn($createdOn)
  69.     {
  70.         $this->createdOn $createdOn;
  71.         return $this;
  72.     }
  73.     /**
  74.      * Get createdOn
  75.      *
  76.      * @return \DateTime
  77.      */
  78.     public function getCreatedOn()
  79.     {
  80.         return $this->createdOn;
  81.     }
  82.     /**
  83.      * Set updatedOn
  84.      *
  85.      * @param \DateTime $updatedOn
  86.      * @return InscriptionFileLog
  87.      */
  88.     public function setUpdatedOn($updatedOn)
  89.     {
  90.         $this->updatedOn $updatedOn;
  91.         return $this;
  92.     }
  93.     /**
  94.      * Get updatedOn
  95.      *
  96.      * @return \DateTime
  97.      */
  98.     public function getUpdatedOn()
  99.     {
  100.         return $this->updatedOn;
  101.     }
  102.     /**
  103.      * Set user
  104.      *
  105.      * @param \App\Entity\User $user
  106.      * @return InscriptionFileLog
  107.      */
  108.     public function setUser(\App\Entity\User $user null)
  109.     {
  110.         $this->user $user;
  111.         return $this;
  112.     }
  113.     /**
  114.      * Get user
  115.      *
  116.      * @return \App\Entity\User
  117.      */
  118.     public function getUser()
  119.     {
  120.         return $this->user;
  121.     }
  122.     /**
  123.      * Set preinscription
  124.      *
  125.      * @param \App\Entity\Preinscription $preinscription
  126.      * @return InscriptionFileLog
  127.      */
  128.     public function setPreinscription(\App\Entity\Preinscription $preinscription null)
  129.     {
  130.         $this->preinscription $preinscription;
  131.         return $this;
  132.     }
  133.     /**
  134.      * Get preinscription
  135.      *
  136.      * @return \App\Entity\Preinscription
  137.      */
  138.     public function getPreinscription()
  139.     {
  140.         return $this->preinscription;
  141.     }
  142.     /**
  143.      * Set inscriptionFile
  144.      *
  145.      * @param \App\Entity\InscriptionFile $inscriptionFile
  146.      * @return InscriptionFileLog
  147.      */
  148.     public function setInscriptionFile(\App\Entity\InscriptionFile $inscriptionFile null)
  149.     {
  150.         $this->inscriptionFile $inscriptionFile;
  151.         return $this;
  152.     }
  153.     /**
  154.      * Get inscriptionFile
  155.      *
  156.      * @return \App\Entity\InscriptionFile
  157.      */
  158.     public function getInscriptionFile()
  159.     {
  160.         return $this->inscriptionFile;
  161.     }
  162.     /**
  163.      * Set center
  164.      *
  165.      * @param \App\Entity\Center $center
  166.      * @return InscriptionFileLog
  167.      */
  168.     public function setCenter(\App\Entity\Center $center null)
  169.     {
  170.         $this->center $center;
  171.         return $this;
  172.     }
  173.     /**
  174.      * Get center
  175.      *
  176.      * @return \App\Entity\Center
  177.      */
  178.     public function getCenter()
  179.     {
  180.         return $this->center;
  181.     }
  182. }