src/Entity/LiveRecord.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LiveRecordRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=LiveRecordRepository::class)
  7. */
  8. class LiveRecord extends BaseEntity
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=Live::class, inversedBy="liveRecords")
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. private $live;
  21. /**
  22. * @ORM\ManyToOne(targetEntity=FileManager::class, cascade={"remove"})
  23. */
  24. private $recordFile;
  25. /**
  26. * @ORM\Column(type="string", length=255, nullable=true)
  27. */
  28. private $link;
  29. /**
  30. * @ORM\Column(type="boolean", nullable=true)
  31. */
  32. private $isAlreadyDownloaded;
  33. /**
  34. * @ORM\Column(type="string", length=255, nullable=true)
  35. */
  36. private $path;
  37. /**
  38. * @ORM\Column(type="boolean", nullable=true)
  39. */
  40. private $isJaas;
  41. public function getId(): ?int
  42. {
  43. return $this->id;
  44. }
  45. public function getLive(): ?Live
  46. {
  47. return $this->live;
  48. }
  49. public function setLive(?Live $live): self
  50. {
  51. $this->live = $live;
  52. return $this;
  53. }
  54. public function getRecordFile(): ?FileManager
  55. {
  56. return $this->recordFile;
  57. }
  58. public function setRecordFile(?FileManager $recordFile): self
  59. {
  60. $this->recordFile = $recordFile;
  61. return $this;
  62. }
  63. public function getLink(): ?string
  64. {
  65. return $this->link;
  66. }
  67. public function setLink(?string $link): self
  68. {
  69. $this->link = $link;
  70. return $this;
  71. }
  72. public function isIsAlreadyDownloaded(): ?bool
  73. {
  74. return $this->isAlreadyDownloaded;
  75. }
  76. public function setIsAlreadyDownloaded(?bool $isAlreadyDownloaded): self
  77. {
  78. $this->isAlreadyDownloaded = $isAlreadyDownloaded;
  79. return $this;
  80. }
  81. public function getPath(): ?string
  82. {
  83. return $this->path;
  84. }
  85. public function setPath(?string $path): self
  86. {
  87. $this->path = $path;
  88. return $this;
  89. }
  90. public function isIsJaas(): ?bool
  91. {
  92. return $this->isJaas;
  93. }
  94. public function setIsJaas(?bool $isJaas): self
  95. {
  96. $this->isJaas = $isJaas;
  97. return $this;
  98. }
  99. }