src/Entity/SpecialityHasCity.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Page
  6. *
  7. * @ORM\Table(name="speciality_has_city")
  8. * @ORM\Entity
  9. */
  10. class SpecialityHasCity
  11. {
  12. /**
  13. * @var int
  14. * @ORM\Id
  15. *
  16. * @ORM\Column(name="id", type="integer", nullable=false)
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="IDENTITY")
  19. */
  20. private $id;
  21. /**
  22. * @var Speciality|null
  23. *
  24. * @ORM\ManyToOne(targetEntity="Speciality")
  25. * @ORM\JoinColumns({
  26. * @ORM\JoinColumn(name="speciality_id", referencedColumnName="id")
  27. * })
  28. */
  29. private $speciality;
  30. /**
  31. * @var City|null
  32. *
  33. * @ORM\ManyToOne(targetEntity="City")
  34. * @ORM\JoinColumns({
  35. * @ORM\JoinColumn(name="city_id", referencedColumnName="id")
  36. * })
  37. */
  38. private $city;
  39. /**
  40. * @var string|null
  41. *
  42. * @ORM\Column(name="content", type="text", length=65535, nullable=true, options={"default"="NULL"})
  43. */
  44. private $content;
  45. /**
  46. * @return int
  47. */
  48. public function getId(): int
  49. {
  50. return $this->id;
  51. }
  52. /**
  53. * @param int $id
  54. */
  55. public function setId(int $id): void
  56. {
  57. $this->id = $id;
  58. }
  59. public function getSpeciality(): ?Speciality
  60. {
  61. return $this->speciality;
  62. }
  63. public function setSpeciality(?Speciality $speciality): void
  64. {
  65. $this->speciality = $speciality;
  66. }
  67. public function getCity(): ?City
  68. {
  69. return $this->city;
  70. }
  71. public function setCity(?City $city): void
  72. {
  73. $this->city = $city;
  74. }
  75. /**
  76. * @return string|null
  77. */
  78. public function getContent(): ?string
  79. {
  80. return $this->content;
  81. }
  82. /**
  83. * @param string|null $content
  84. */
  85. public function setContent(?string $content): void
  86. {
  87. $this->content = $content;
  88. }
  89. }