src/Entity/Domain.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DomainRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=DomainRepository::class)
  7. * @ORM\EntityListeners({"App\Listener\EntityListener"})
  8. */
  9. class Domain
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\Column(type="string", length=200)
  19. */
  20. private $name;
  21. /**
  22. * @ORM\Column(type="string", length=200)
  23. */
  24. private $url;
  25. /**
  26. * @ORM\Column(type="string", length=200)
  27. */
  28. private $host;
  29. /**
  30. * @ORM\Column(type="datetime")
  31. */
  32. private $createts;
  33. /**
  34. * @ORM\Column(type="string")
  35. */
  36. private $locale;
  37. /**
  38. * @ORM\Column(type="array")
  39. */
  40. private $currencies;
  41. /**
  42. * @ORM\ManyToOne(targetEntity="App\Entity\User")
  43. * @ORM\JoinColumn(nullable=false)
  44. */
  45. private $createUser;
  46. /**
  47. * @ORM\Column(type="datetime", nullable=true)
  48. */
  49. private $editts;
  50. /**
  51. * @ORM\ManyToOne(targetEntity="App\Entity\User")
  52. */
  53. private $editUser;
  54. public function getId(): ?int
  55. {
  56. return $this->id;
  57. }
  58. public function getName(): ?string
  59. {
  60. return $this->name;
  61. }
  62. public function setName(string $name): self
  63. {
  64. $this->name = $name;
  65. return $this;
  66. }
  67. public function getUrl(): ?string
  68. {
  69. return $this->url;
  70. }
  71. public function setUrl(string $url): self
  72. {
  73. $this->url = $url;
  74. return $this;
  75. }
  76. public function getCreatets(): ?\DateTimeInterface
  77. {
  78. return $this->createts;
  79. }
  80. public function setCreatets(\DateTimeInterface $createts): self
  81. {
  82. $this->createts = $createts;
  83. return $this;
  84. }
  85. public function getCreateUser(): ?User
  86. {
  87. return $this->createUser;
  88. }
  89. public function setCreateUser(?User $createUser): self
  90. {
  91. $this->createUser = $createUser;
  92. return $this;
  93. }
  94. public function getEditts(): ?\DateTimeInterface
  95. {
  96. return $this->editts;
  97. }
  98. public function setEditts(?\DateTimeInterface $editts): self
  99. {
  100. $this->editts = $editts;
  101. return $this;
  102. }
  103. public function getEditUser(): ?User
  104. {
  105. return $this->editUser;
  106. }
  107. public function setEditUser(?User $editUser): self
  108. {
  109. $this->editUser = $editUser;
  110. return $this;
  111. }
  112. /**
  113. * Get Host
  114. *
  115. * @return mixed
  116. */
  117. public function getHost()
  118. {
  119. return $this->host;
  120. }
  121. /**
  122. * Set Host
  123. *
  124. * @param mixed $host
  125. */
  126. public function setHost( $host )
  127. {
  128. $this->host = $host;
  129. }
  130. /**
  131. * Get Locale
  132. *
  133. * @return mixed
  134. */
  135. public function getLocale()
  136. {
  137. return $this->locale;
  138. }
  139. /**
  140. * Set Locale
  141. *
  142. * @param mixed $locale
  143. */
  144. public function setLocale( $locale )
  145. {
  146. $this->locale = $locale;
  147. }
  148. /**
  149. * Get Currencies
  150. *
  151. * @return mixed
  152. */
  153. public function getCurrencies()
  154. {
  155. return $this->currencies;
  156. }
  157. /**
  158. * Set Currencies
  159. *
  160. * @param mixed $currencies
  161. */
  162. public function setCurrencies( $currencies )
  163. {
  164. $this->currencies = $currencies;
  165. }
  166. }