Advertisement
Guest User

Untitled

a guest
May 20th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. ?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity(repositoryClass="App\Repository\PropertyRepository")
  6. */
  7. class Property
  8. {
  9. /**
  10. * @ORM\Id()
  11. * @ORM\GeneratedValue()
  12. * @ORM\Column(type="integer")
  13. */
  14. private $id;
  15. /**
  16. * @ORM\Column(type="integer")
  17. */
  18. private $surface;
  19. /**
  20. * @ORM\Column(type="integer")
  21. */
  22. private $rooms;
  23. /**
  24. * @ORM\Column(type="integer")
  25. */
  26. private $bedrooms;
  27. /**
  28. * @ORM\Column(type="integer")
  29. */
  30. private $floor;
  31. /**
  32. * @ORM\Column(type="integer")
  33. */
  34. private $price;
  35. /**
  36. * @ORM\Column(type="integer")
  37. */
  38. private $heat;
  39. /**
  40. * @ORM\Column(type="string", length=255)
  41. */
  42. private $city;
  43. /**
  44. * @ORM\Column(type="string", length=255)
  45. */
  46. private $address;
  47. /**
  48. * @ORM\Column(type="string", length=255)
  49. */
  50. private $postal_code;
  51. /**
  52. * @ORM\Column(type="boolean", options={"default" : false})
  53. */
  54. private $sold = false;
  55. /**
  56. * @ORM\Column(type="datetime")
  57. */
  58. private $created_at;
  59. public function __construct()
  60. {
  61. $this->created_at = new \DateTime();
  62. }
  63. public function getId(): ?int
  64. {
  65. return $this->id;
  66. }
  67. public function getSurface(): ?int
  68. {
  69. return $this->surface;
  70. }
  71. public function setSurface(int $surface): self
  72. {
  73. $this->surface = $surface;
  74. return $this;
  75. }
  76. public function getRooms(): ?int
  77. {
  78. return $this->rooms;
  79. }
  80. public function setRooms(int $rooms): self
  81. {
  82. $this->rooms = $rooms;
  83. return $this;
  84. }
  85. public function getBedrooms(): ?int
  86. {
  87. return $this->bedrooms;
  88. }
  89. public function setBedrooms(int $bedrooms): self
  90. {
  91. $this->bedrooms = $bedrooms;
  92. return $this;
  93. }
  94. public function getFloor(): ?int
  95. {
  96. return $this->floor;
  97. }
  98. public function setFloor(int $floor): self
  99. {
  100. $this->floor = $floor;
  101. return $this;
  102. }
  103. public function getPrice(): ?int
  104. {
  105. return $this->price;
  106. }
  107. public function setPrice(int $price): self
  108. {
  109. $this->price = $price;
  110. return $this;
  111. }
  112. public function getHeat(): ?int
  113. {
  114. return $this->heat;
  115. }
  116. public function setHeat(int $heat): self
  117. {
  118. $this->heat = $heat;
  119. return $this;
  120. }
  121. public function getCity(): ?string
  122. {
  123. return $this->city;
  124. }
  125. public function setCity(string $city): self
  126. {
  127. $this->city = $city;
  128. return $this;
  129. }
  130. public function getAddress(): ?string
  131. {
  132. return $this->address;
  133. }
  134. public function setAddress(string $address): self
  135. {
  136. $this->address = $address;
  137. return $this;
  138. }
  139. public function getPostalCode(): ?string
  140. {
  141. return $this->postal_code;
  142. }
  143. public function setPostalCode(string $postal_code): self
  144. {
  145. $this->postal_code = $postal_code;
  146. return $this;
  147. }
  148. public function getSold(): ?bool
  149. {
  150. return $this->sold;
  151. }
  152. public function setSold(bool $sold): self
  153. {
  154. $this->sold = $sold;
  155. return $this;
  156. }
  157. public function getCreatedAt(): ?\DateTimeInterface
  158. {
  159. return $this->created_at;
  160. }
  161. public function setCreatedAt(\DateTimeInterface $created_at): self
  162. {
  163. $this->created_at = $created_at;
  164. return $this;
  165. }
  166. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement