src/Entity/PresentationMusic.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7.  * PresentationMusic
  8.  *
  9.  * @ORM\Table(name="presentation_music")
  10.  * @ORM\Entity(repositoryClass="App\Repository\PresentationMusicRepository")
  11.  * @ORM\HasLifecycleCallbacks()
  12.  */
  13. class PresentationMusic
  14. {
  15.     /**
  16.      * @var int
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var string
  25.      *
  26.      * @ORM\Column(name="title", type="string", length=255)
  27.      */
  28.     private $title;
  29.     /**
  30.      * @var string
  31.      *
  32.      * @ORM\Column(name="file", type="string", length=255)
  33.      */
  34.     private $file;
  35.     /**
  36.      * @var int
  37.      *
  38.      * @ORM\Column(name="created_id", type="integer")
  39.      */
  40.     private $createdId;
  41.     /**
  42.      * @var \DateTime
  43.      *
  44.      * @ORM\Column(name="created_at", type="datetime")
  45.      */
  46.     private $createdAt;
  47.     /**
  48.      * @var int
  49.      *
  50.      * @ORM\Column(name="updated_id", type="integer")
  51.      */
  52.     private $updatedId;
  53.     /**
  54.      * @var \DateTime
  55.      *
  56.      * @ORM\Column(name="updated_at", type="datetime")
  57.      */
  58.     private $updatedAt;
  59.     /**
  60.      * Get id
  61.      *
  62.      * @return int
  63.      */
  64.     public function getId()
  65.     {
  66.         return $this->id;
  67.     }
  68.     /**
  69.      * Set title
  70.      *
  71.      * @param string $title
  72.      *
  73.      * @return PresentationMusic
  74.      */
  75.     public function setTitle($title)
  76.     {
  77.         $this->title $title;
  78.         return $this;
  79.     }
  80.     /**
  81.      * Get title
  82.      *
  83.      * @return string
  84.      */
  85.     public function getTitle()
  86.     {
  87.         return $this->title;
  88.     }
  89.     /**
  90.      * Set file
  91.      *
  92.      * @param string $file
  93.      *
  94.      * @return PresentationMusic
  95.      */
  96.     public function setFile($file)
  97.     {
  98.         $this->file $file;
  99.         return $this;
  100.     }
  101.     /**
  102.      * Get file
  103.      *
  104.      * @return string
  105.      */
  106.     public function getFile()
  107.     {
  108.         return $this->file;
  109.     }
  110.     /**
  111.      * Set createdId
  112.      *
  113.      * @param integer $createdId
  114.      *
  115.      * @return PresentationMusic
  116.      */
  117.     public function setCreatedId($createdId)
  118.     {
  119.         $this->createdId $createdId;
  120.         return $this;
  121.     }
  122.     /**
  123.      * Get createdId
  124.      *
  125.      * @return integer
  126.      */
  127.     public function getCreatedId()
  128.     {
  129.         return $this->createdId;
  130.     }
  131.     /**
  132.      * Set createdAt
  133.      *
  134.      * @param \DateTime $createdAt
  135.      *
  136.      * @return PresentationMusic
  137.      */
  138.     public function setCreatedAt(\Datetime $createdAt)
  139.     {
  140.         $this->createdAt $createdAt;
  141.         return $this;
  142.     }
  143.     /**
  144.      * Get createdAt
  145.      *
  146.      * @return \DateTime
  147.      */
  148.     public function getCreatedAt()
  149.     {
  150.         return $this->createdAt;
  151.     }
  152.     /**
  153.      * Set updatedId
  154.      *
  155.      * @param integer $updatedId
  156.      *
  157.      * @return PresentationMusic
  158.      */
  159.     public function setUpdatedId($updatedId)
  160.     {
  161.         $this->updatedId $updatedId;
  162.         return $this;
  163.     }
  164.     /**
  165.      * Get updatedId
  166.      *
  167.      * @return integer
  168.      */
  169.     public function getUpdatedId()
  170.     {
  171.         return $this->updatedId;
  172.     }
  173.     /**
  174.      * Set updatedAt
  175.      *
  176.      * @param \DateTime $updatedAt
  177.      *
  178.      * @return PresentationMusic
  179.      */
  180.     public function setUpdatedAt(\Datetime $updatedAt)
  181.     {
  182.         $this->updatedAt $updatedAt;
  183.         return $this;
  184.     }
  185.     /**
  186.      * Get updatedAt
  187.      *
  188.      * @return \DateTime
  189.      */
  190.     public function getUpdatedAt()
  191.     {
  192.         return $this->updatedAt;
  193.     }
  194.     /**
  195.      * @ORM\PrePersist
  196.      */
  197.     public function setCreatedAtValue()
  198.     {
  199.         $this->createdAt = new \Datetime();
  200.     }
  201.     /**
  202.      * @ORM\PrePersist
  203.      * @ORM\PreUpdate
  204.      */
  205.     public function setUpdatedAtValue()
  206.     {
  207.         $this->updatedAt = new \Datetime();
  208.     }
  209. }