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(repositoryClass: VideoRepository::class)]
  6. class Video
  7. {
  8. #[ORM\Id]
  9. #[ORM\GeneratedValue]
  10. #[ORM\Column]
  11. private ?int $id = null;
  12. #[ORM\Column(length: 255)]
  13. private ?string $name = null;
  14. #[ORM\Column(length: 255, nullable: true)]
  15. private ?string $files = null;
  16. #[ORM\Column(length: 255, nullable: true)]
  17. private ?string $link = null;
  18. #[ORM\Column]
  19. private ?int $pool = 0;
  20. #[ORM\Column]
  21. private ?int $time = 30;
  22. #[ORM\Column]
  23. private ?bool $enable = false;
  24. #[ORM\Column]
  25. private ?int $view = 0;
  26. public function getId(): ?int
  27. {
  28. return $this->id;
  29. }
  30. public function getName(): ?string
  31. {
  32. return $this->name;
  33. }
  34. public function setName(string $name): static
  35. {
  36. $this->name = $name;
  37. return $this;
  38. }
  39. public function getFiles(): ?string
  40. {
  41. return $this->files;
  42. }
  43. public function setFiles(?string $files): static
  44. {
  45. $this->files = $files;
  46. return $this;
  47. }
  48. public function getLink(): ?string
  49. {
  50. return $this->link;
  51. }
  52. public function setLink(?string $link): static
  53. {
  54. $this->link = $link;
  55. return $this;
  56. }
  57. public function getPool(): ?int
  58. {
  59. return $this->pool;
  60. }
  61. public function setPool(int $pool): static
  62. {
  63. $this->pool = $pool;
  64. return $this;
  65. }
  66. public function getTime(): ?int
  67. {
  68. return $this->time;
  69. }
  70. public function setTime(int $time): static
  71. {
  72. $this->time = $time;
  73. return $this;
  74. }
  75. public function isEnable(): ?bool
  76. {
  77. return $this->enable;
  78. }
  79. public function setEnable(bool $enable): static
  80. {
  81. $this->enable = $enable;
  82. return $this;
  83. }
  84. public function getView(): ?int
  85. {
  86. return $this->view;
  87. }
  88. public function setView(int $view): static
  89. {
  90. $this->view = $view;
  91. return $this;
  92. }
  93. }