src/Entity/Idempiere/AdWindow.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Idempiere;
  3. use App\Repository\Idempiere\AdWindowRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * @ORM\Entity(repositoryClass=AdWindowRepository::class)
  9. * @ORM\Table(name="ad_window")
  10. */
  11. class AdWindow
  12. {
  13. /**
  14. * @ORM\Id
  15. * @ORM\Column(type="integer")
  16. */
  17. private $ad_window_id;
  18. /**
  19. * @ORM\Column(type="string", length=1)
  20. */
  21. private $isactive;
  22. /**
  23. * @ORM\Column(type="string", length=60)
  24. */
  25. private $name;
  26. /**
  27. * @ORM\OneToMany(targetEntity=AdTab::class, mappedBy="ad_window")
  28. * @ORM\OrderBy({"seqno": "ASC"})
  29. */
  30. private $ad_tabs;
  31. public function __construct()
  32. {
  33. $this->ad_tabs = new ArrayCollection();
  34. }
  35. public function getId(): ?int
  36. {
  37. return $this->getAdWindowId();
  38. }
  39. public function getAdWindowId(): ?int
  40. {
  41. return $this->ad_window_id;
  42. }
  43. public function setAdWindowId(int $ad_window_id): self
  44. {
  45. $this->ad_window_id = $ad_window_id;
  46. return $this;
  47. }
  48. public function getIsactive(): ?string
  49. {
  50. return $this->isactive;
  51. }
  52. public function setIsactive(string $isactive): self
  53. {
  54. $this->isactive = $isactive;
  55. return $this;
  56. }
  57. public function getName(): ?string
  58. {
  59. return $this->name;
  60. }
  61. public function setName(string $name): self
  62. {
  63. $this->name = $name;
  64. return $this;
  65. }
  66. /**
  67. * @return Collection<int, AdTab>
  68. */
  69. public function getAdTabs(): Collection
  70. {
  71. return $this->ad_tabs;
  72. }
  73. public function addAdTab(AdTab $adTab): self
  74. {
  75. if (!$this->ad_tabs->contains($adTab)) {
  76. $this->ad_tabs[] = $adTab;
  77. $adTab->setAdwindow($this);
  78. }
  79. return $this;
  80. }
  81. public function removeAdTab(AdTab $adTab): self
  82. {
  83. if ($this->ad_tabs->removeElement($adTab)) {
  84. // set the owning side to null (unless already changed)
  85. if ($adTab->getAdwindow() === $this) {
  86. $adTab->setAdwindow(null);
  87. }
  88. }
  89. return $this;
  90. }
  91. }