src/Entity/Idempiere/AdWindowAccess.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Idempiere;
  3. use App\Repository\Idempiere\AdWindowAccessRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=AdWindowAccessRepository::class)
  7. */
  8. class AdWindowAccess
  9. {
  10. /**
  11. * @ORM\Column(type="integer")
  12. */
  13. private $ad_role_id;
  14. /**
  15. * @ORM\Column(type="integer")
  16. */
  17. private $ad_window_id;
  18. /**
  19. * @ORM\Id
  20. * @ORM\Column(type="string", length=36)
  21. */
  22. private $ad_window_access_uu;
  23. /**
  24. * @ORM\Column(type="string", length=1)
  25. */
  26. private $isactive;
  27. /**
  28. * @ORM\Column(type="string", length=1)
  29. */
  30. private $isreadwrite;
  31. /**
  32. * @ORM\ManyToOne(targetEntity=AdWindow::class)
  33. * @ORM\JoinColumn(referencedColumnName="ad_window_id", nullable=false)
  34. */
  35. private $ad_window;
  36. public function getId(): ?string
  37. {
  38. return $this->getAdWindowAccessUu();
  39. }
  40. public function getAdRoleId(): ?int
  41. {
  42. return $this->ad_role_id;
  43. }
  44. public function setAdRoleId(int $ad_role_id): self
  45. {
  46. $this->ad_role_id = $ad_role_id;
  47. return $this;
  48. }
  49. public function getAdWindowId(): ?int
  50. {
  51. return $this->ad_window_id;
  52. }
  53. public function setAdWindowId(int $ad_window_id): self
  54. {
  55. $this->ad_window_id = $ad_window_id;
  56. return $this;
  57. }
  58. public function getAdWindowAccessUu(): ?string
  59. {
  60. return $this->ad_window_access_uu;
  61. }
  62. public function setAdWindowAccessUu(string $ad_window_access_uu): self
  63. {
  64. $this->ad_window_access_uu = $ad_window_access_uu;
  65. return $this;
  66. }
  67. public function isActive(): ?bool
  68. {
  69. return $this->getIsactive() === "Y";
  70. }
  71. public function getIsactive(): ?string
  72. {
  73. return $this->isactive ;
  74. }
  75. public function setIsactive(string $isactive): self
  76. {
  77. $this->isactive = $isactive;
  78. return $this;
  79. }
  80. public function isReadWrite(): ?bool
  81. {
  82. return $this->getIsreadwrite() === "Y";
  83. }
  84. public function getIsreadwrite(): ?string
  85. {
  86. return $this->isreadwrite;
  87. }
  88. public function setIsreadwrite(string $isreadwrite): self
  89. {
  90. $this->isreadwrite = $isreadwrite;
  91. return $this;
  92. }
  93. public function getAdwindow(): ?AdWindow
  94. {
  95. return $this->ad_window;
  96. }
  97. public function setAdwindow(?AdWindow $adwindow): self
  98. {
  99. $this->ad_window = $adwindow;
  100. return $this;
  101. }
  102. }