src/Entity/TeacherContract.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TeacherContractRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7. * @ORM\Entity(repositoryClass=TeacherContractRepository::class)
  8. */
  9. class TeacherContract
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. * @Groups({"TeacherContractPriceList"})
  16. */
  17. private $id;
  18. /**
  19. * @ORM\Column(type="string", length=255, nullable=true)
  20. */
  21. private $filePath;
  22. /**
  23. * @ORM\Column(type="datetime", nullable=true)
  24. */
  25. private $dateUpdated;
  26. /**
  27. * @ORM\Column(type="text", nullable=true)
  28. */
  29. private $comment;
  30. /**
  31. * @ORM\Column(type="datetime", nullable=true)
  32. */
  33. private $createdAt;
  34. public function __construct()
  35. {
  36. }
  37. public function getId(): ?int
  38. {
  39. return $this->id;
  40. }
  41. public function getFilePath(): ?string
  42. {
  43. return $this->filePath;
  44. }
  45. public function setFilePath(?string $filePath): self
  46. {
  47. $this->filePath = $filePath;
  48. return $this;
  49. }
  50. public function getDateUpdated(): ?\DateTimeInterface
  51. {
  52. return $this->dateUpdated;
  53. }
  54. public function setDateUpdated(?\DateTimeInterface $dateUpdated): self
  55. {
  56. $this->dateUpdated = $dateUpdated;
  57. return $this;
  58. }
  59. public function getComment(): ?string
  60. {
  61. return $this->comment;
  62. }
  63. public function setComment(?string $comment): self
  64. {
  65. $this->comment = $comment;
  66. return $this;
  67. }
  68. public function __toString()
  69. {
  70. return "{$this->id} {$this->filePath}";
  71. }
  72. public function getCreatedAt(): ?\DateTimeInterface
  73. {
  74. return $this->createdAt;
  75. }
  76. public function setCreatedAt(?\DateTimeInterface $createdAt): self
  77. {
  78. $this->createdAt = $createdAt;
  79. return $this;
  80. }
  81. }