src/Entity/Video.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\VideoRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassVideoRepository::class)]
  6. class Video
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityProInfo::class, inversedBy'videos')]
  13.     private $pro;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $videoId;
  16.     #[ORM\ManyToOne(targetEntityCourse::class, inversedBy'videos')]
  17.     private $course;
  18.     #[ORM\Column(type'string'length255)]
  19.     private $type;
  20.     #[ORM\Column(type'string'length255nullabletrue)]
  21.     private $path;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getPro(): ?ProInfo
  27.     {
  28.         return $this->pro;
  29.     }
  30.     public function setPro(?ProInfo $pro): self
  31.     {
  32.         $this->pro $pro;
  33.         return $this;
  34.     }
  35.     public function getVideoId(): ?string
  36.     {
  37.         return $this->videoId;
  38.     }
  39.     public function setVideoId(?string $videoId): self
  40.     {
  41.         $this->videoId $videoId;
  42.         return $this;
  43.     }
  44.     public function getCourse(): ?Course
  45.     {
  46.         return $this->course;
  47.     }
  48.     public function setCourse(?Course $course): self
  49.     {
  50.         $this->course $course;
  51.         return $this;
  52.     }
  53.     public function getType(): ?string
  54.     {
  55.         return $this->type;
  56.     }
  57.     public function setType(string $type): self
  58.     {
  59.         $this->type $type;
  60.         return $this;
  61.     }
  62.     public function getPath(): ?string
  63.     {
  64.         return $this->path;
  65.     }
  66.     public function setPath(?string $path): self
  67.     {
  68.         $this->path $path;
  69.         return $this;
  70.     }
  71. }