src/Entity/UserLibrary.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UserLibraryRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=UserLibraryRepository::class)
  7. */
  8. class UserLibrary
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(type="integer")
  18. */
  19. private $user_id;
  20. /**
  21. * @ORM\Column(type="integer")
  22. */
  23. private $core_subject_id;
  24. /**
  25. * @ORM\Column(type="integer")
  26. */
  27. private $core_library_id;
  28. /**
  29. * @ORM\Column(type="string", length=255)
  30. */
  31. private $name;
  32. /**
  33. * @ORM\Column(type="text")
  34. */
  35. private $description;
  36. /**
  37. * @ORM\Column(type="datetime")
  38. */
  39. private $created_date;
  40. public function getId(): ?int
  41. {
  42. return $this->id;
  43. }
  44. public function getUserId(): ?int
  45. {
  46. return $this->user_id;
  47. }
  48. public function setUserId(int $user_id): self
  49. {
  50. $this->user_id = $user_id;
  51. return $this;
  52. }
  53. public function getCoreLibraryId(): ?int
  54. {
  55. return $this->core_library_id;
  56. }
  57. public function setCoreLibraryId(int $core_library_id): self
  58. {
  59. $this->core_library_id = $core_library_id;
  60. return $this;
  61. }
  62. public function getName(): ?string
  63. {
  64. return $this->name;
  65. }
  66. public function setName(string $name): self
  67. {
  68. $this->name = $name;
  69. return $this;
  70. }
  71. public function getCreatedDate(): ?\DateTimeInterface
  72. {
  73. return $this->created_date;
  74. }
  75. public function setCreatedDate(\DateTimeInterface $created_date): self
  76. {
  77. $this->created_date = $created_date;
  78. return $this;
  79. }
  80. public function getDescription(): ?string
  81. {
  82. return $this->description;
  83. }
  84. public function setDescription(string $description): self
  85. {
  86. $this->description = $description;
  87. return $this;
  88. }
  89. public function getCoreSubjectId(): ?int
  90. {
  91. return $this->core_subject_id;
  92. }
  93. public function setCoreSubjectId(int $core_subject_id): self
  94. {
  95. $this->core_subject_id = $core_subject_id;
  96. return $this;
  97. }
  98. }