src/Entity/VideoLastValidate.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\VideoLastValidateRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. /**
  8.  * @ORM\Entity(repositoryClass=VideoLastValidateRepository::class)
  9.  */
  10. class VideoLastValidate
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Video::class, inversedBy="videoLastValidates")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $video;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=TvUser::class, inversedBy="videoLastValidates")
  25.      * @ORM\JoinColumn(nullable=true)
  26.      */
  27.     private $tvUser;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="videoLastValidates")
  30.      * @ORM\JoinColumn(nullable=true)
  31.      * @Assert\NotNull
  32.      */
  33.     private $user;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity=Playlist::class, inversedBy="videoLastValidates")
  36.      * @ORM\JoinColumn(nullable=false)
  37.      */
  38.     private $playlist;
  39.     /**
  40.      * @ORM\Column(type="datetime")
  41.      * @Gedmo\Timestampable(on="create")
  42.      */
  43.     private $createdAt;
  44.     /**
  45.      * @ORM\Column(type="datetime")
  46.      * @Gedmo\Timestampable(on="update")
  47.      */
  48.     private $updatedAt;
  49.     /**
  50.      * @ORM\Column(type="integer")
  51.      */
  52.     private $timecode;
  53.     /**
  54.      * @ORM\Column(type="string", length=255)
  55.      */
  56.     private $type;
  57.     /**
  58.      * @ORM\Column(type="integer", nullable=true)
  59.      */
  60.     private $value;
  61.     public function getId(): ?int
  62.     {
  63.         return $this->id;
  64.     }
  65.     public function getVideo(): ?Video
  66.     {
  67.         return $this->video;
  68.     }
  69.     public function setVideo(?Video $video): self
  70.     {
  71.         $this->video $video;
  72.         return $this;
  73.     }
  74.     public function getTvUser(): ?TvUser
  75.     {
  76.         return $this->tvUser;
  77.     }
  78.     public function setTvUser(?TvUser $tvUser): self
  79.     {
  80.         $this->tvUser $tvUser;
  81.         return $this;
  82.     }
  83.     public function getUser(): ?User
  84.     {
  85.         return $this->user;
  86.     }
  87.     public function setUser(?User $user): self
  88.     {
  89.         $this->user $user;
  90.         return $this;
  91.     }
  92.     public function getPlaylist(): ?Playlist
  93.     {
  94.         return $this->playlist;
  95.     }
  96.     public function setPlaylist(?Playlist $playlist): self
  97.     {
  98.         $this->playlist $playlist;
  99.         return $this;
  100.     }
  101.     public function getCreatedAt(): ?\DateTimeInterface
  102.     {
  103.         return $this->createdAt;
  104.     }
  105.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  106.     {
  107.         $this->createdAt $createdAt;
  108.         return $this;
  109.     }
  110.     public function getUpdatedAt(): ?\DateTimeInterface
  111.     {
  112.         return $this->updatedAt;
  113.     }
  114.     public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  115.     {
  116.         $this->updatedAt $updatedAt;
  117.         return $this;
  118.     }
  119.     public function getTimecode(): ?int
  120.     {
  121.         return $this->timecode;
  122.     }
  123.     public function setTimecode(int $timecode): self
  124.     {
  125.         $this->timecode $timecode;
  126.         return $this;
  127.     }
  128.     public function getType(): ?string
  129.     {
  130.         return $this->type;
  131.     }
  132.     public function setType(string $type): self
  133.     {
  134.         $this->type $type;
  135.         return $this;
  136.     }
  137.     public function getValue(): ?int
  138.     {
  139.         return $this->value;
  140.     }
  141.     public function setValue(?int $value): self
  142.     {
  143.         $this->value $value;
  144.         return $this;
  145.     }
  146. }