src/Entity/Idempiere/SmCharacteristicset.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Idempiere;
  3. use App\Repository\Idempiere\SmCharacteristicsetRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * @ORM\Entity(repositoryClass=SmCharacteristicsetRepository::class)
  9. * @ORM\Table(name="SM_CharacteristicSet")
  10. */
  11. class SmCharacteristicset
  12. {
  13. /**
  14. * @ORM\Column(type="integer")
  15. */
  16. private $ad_client_id;
  17. /**
  18. * @ORM\Column(type="integer")
  19. */
  20. private $ad_org_id;
  21. /**
  22. * @ORM\Column(type="datetime")
  23. */
  24. private $created;
  25. /**
  26. * @ORM\Column(type="integer")
  27. */
  28. private $createdby;
  29. /**
  30. * @ORM\Column(type="string", length=255, nullable=true)
  31. */
  32. private $description;
  33. /**
  34. * @ORM\Column(type="string", length=1)
  35. */
  36. private $isactive;
  37. /**
  38. * @ORM\Column(type="string", length=60)
  39. */
  40. private $name;
  41. /**
  42. * @ORM\Id
  43. * @ORM\Column(type="integer")
  44. */
  45. private $sm_characteristicset_id;
  46. /**
  47. * @ORM\Column(type="string", length=36)
  48. */
  49. private $sm_characteristicset_uu;
  50. /**
  51. * @ORM\Column(type="datetime")
  52. */
  53. private $updated;
  54. /**
  55. * @ORM\Column(type="integer")
  56. */
  57. private $updatedby;
  58. /**
  59. * @ORM\OneToMany(targetEntity=SmCharacteristicuse::class, mappedBy="sm_characteristicset", orphanRemoval=true)
  60. */
  61. private $sm_characteristicuses;
  62. public function __construct()
  63. {
  64. $this->sm_characteristicuses = new ArrayCollection();
  65. }
  66. public function getId(): ?int
  67. {
  68. return $this->getSmCharacteristicsetId();
  69. }
  70. public function getAdClientId(): ?int
  71. {
  72. return $this->ad_client_id;
  73. }
  74. public function setAdClientId(int $ad_client_id): self
  75. {
  76. $this->ad_client_id = $ad_client_id;
  77. return $this;
  78. }
  79. public function getAdOrgId(): ?int
  80. {
  81. return $this->ad_org_id;
  82. }
  83. public function setAdOrgId(int $ad_org_id): self
  84. {
  85. $this->ad_org_id = $ad_org_id;
  86. return $this;
  87. }
  88. public function getCreated(): ?\DateTimeInterface
  89. {
  90. return $this->created;
  91. }
  92. public function setCreated(\DateTimeInterface $created): self
  93. {
  94. $this->created = $created;
  95. return $this;
  96. }
  97. public function getCreatedby(): ?int
  98. {
  99. return $this->createdby;
  100. }
  101. public function setCreatedby(int $createdby): self
  102. {
  103. $this->createdby = $createdby;
  104. return $this;
  105. }
  106. public function getDescription(): ?string
  107. {
  108. return $this->description;
  109. }
  110. public function setDescription(?string $description): self
  111. {
  112. $this->description = $description;
  113. return $this;
  114. }
  115. public function isActive(): ?bool
  116. {
  117. return $this->getIsactive() === "Y";
  118. }
  119. public function getIsactive(): ?string
  120. {
  121. return $this->isactive;
  122. }
  123. public function setIsactive(string $isactive): self
  124. {
  125. $this->isactive = $isactive;
  126. return $this;
  127. }
  128. public function setActive(bool $active): self
  129. {
  130. $this->setIsactive($active ? "Y" : "N");
  131. return $this;
  132. }
  133. public function getName(): ?string
  134. {
  135. return $this->name;
  136. }
  137. public function setName(string $name): self
  138. {
  139. $this->name = $name;
  140. return $this;
  141. }
  142. public function getSmCharacteristicsetId(): ?int
  143. {
  144. return $this->sm_characteristicset_id;
  145. }
  146. public function setSmCharacteristicsetId(int $sm_characteristicset_id): self
  147. {
  148. $this->sm_characteristicset_id = $sm_characteristicset_id;
  149. return $this;
  150. }
  151. public function getSmCharacteristicsetUu(): ?string
  152. {
  153. return $this->sm_characteristicset_uu;
  154. }
  155. public function setSmCharacteristicsetUu(string $sm_characteristicset_uu): self
  156. {
  157. $this->sm_characteristicset_uu = $sm_characteristicset_uu;
  158. return $this;
  159. }
  160. public function getUpdated(): ?\DateTimeInterface
  161. {
  162. return $this->updated;
  163. }
  164. public function setUpdated(\DateTimeInterface $updated): self
  165. {
  166. $this->updated = $updated;
  167. return $this;
  168. }
  169. public function getUpdatedby(): ?int
  170. {
  171. return $this->updatedby;
  172. }
  173. public function setUpdatedby(int $updatedby): self
  174. {
  175. $this->updatedby = $updatedby;
  176. return $this;
  177. }
  178. /**
  179. * @return Collection<int, SmCharacteristicuse>
  180. */
  181. public function getSmCharacteristicuses(): Collection
  182. {
  183. return $this->sm_characteristicuses;
  184. }
  185. public function addSmCharacteristicus(SmCharacteristicuse $smCharacteristicus): self
  186. {
  187. if (!$this->sm_characteristicuses->contains($smCharacteristicus)) {
  188. $this->sm_characteristicuses[] = $smCharacteristicus;
  189. $smCharacteristicus->setSmCharacteristicset($this);
  190. }
  191. return $this;
  192. }
  193. public function removeSmCharacteristicus(SmCharacteristicuse $smCharacteristicus): self
  194. {
  195. if ($this->sm_characteristicuses->removeElement($smCharacteristicus)) {
  196. // set the owning side to null (unless already changed)
  197. if ($smCharacteristicus->getSmCharacteristicset() === $this) {
  198. $smCharacteristicus->setSmCharacteristicset(null);
  199. }
  200. }
  201. return $this;
  202. }
  203. }