src/Entity/Idempiere/AdRole.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Idempiere;
  3. use App\Repository\Idempiere\AdRoleRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=AdRoleRepository::class)
  9.  * @ORM\Table(name="AD_Role")
  10.  */
  11. class AdRole
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $ad_role_id;
  18.     /**
  19.      * @ORM\Column(type="string", length=100)
  20.      */
  21.     private $name;
  22.     /**
  23.      * @ORM\Column(type="string", length=1)
  24.      */
  25.     private $ismasterrole;
  26.     /**
  27.      * @ORM\Column(type="string", length=1)
  28.      */
  29.     private $isactive;
  30.     /**
  31.      * @ORM\Column(type="string", length=1)
  32.      */
  33.     private $isaccessallorgs;
  34.     /**
  35.      * @ORM\Column(type="string", length=1)
  36.      */
  37.     private $isuseuserorgaccess;
  38.     /**
  39.      * @ORM\Column(type="string", length=1)
  40.      */
  41.     private $iscanexport;
  42.     /**
  43.      * @ORM\Column(type="string", length=1)
  44.      */
  45.     private $ischangelog;
  46.     /**
  47.      * @ORM\Column(type="string", length=1)
  48.      */
  49.     private $isshowacct;
  50.     /**
  51.      * @ORM\Column(type="integer", nullable=true)
  52.      */
  53.     private $c_currency_id;
  54.     /**
  55.      * @ORM\Column(type="string", length=1)
  56.      */
  57.     private $iscanapproveowndoc;
  58.     /**
  59.      * @ORM\OneToMany(targetEntity=AdRoleIncluded::class, mappedBy="ad_role")
  60.      */
  61.     private $adRoleIncludeds;
  62.     /**
  63.      * @ORM\OneToMany(targetEntity=AdUserRoles::class, mappedBy="ad_role")
  64.      */
  65.     private $ad_user_roles;
  66.     /**
  67.      * @ORM\OneToMany(targetEntity=AdRoleOrgaccess::class, mappedBy="ad_role")
  68.      */
  69.     private $ad_role_orgaccesses;
  70.     public function __construct()
  71.     {
  72.         $this->adRoleIncludeds = new ArrayCollection();
  73.         $this->ad_user_roles = new ArrayCollection();
  74.         $this->ad_role_orgaccesses = new ArrayCollection();
  75.     }
  76.     public function getId(): ?int
  77.     {
  78.         return $this->getAdRoleId();
  79.     }
  80.     public function getAdRoleId(): ?int
  81.     {
  82.         return $this->ad_role_id;
  83.     }
  84.     public function setAdRoleId(int $ad_role_id): self
  85.     {
  86.         $this->ad_role_id $ad_role_id;
  87.         return $this;
  88.     }
  89.     public function getName(): ?string
  90.     {
  91.         return $this->name;
  92.     }
  93.     public function setName(string $name): self
  94.     {
  95.         $this->name $name;
  96.         return $this;
  97.     }
  98.     public function getIsmasterrole(): ?string
  99.     {
  100.         return $this->ismasterrole;
  101.     }
  102.     public function setIsmasterrole(string $ismasterrole): self
  103.     {
  104.         $this->ismasterrole $ismasterrole;
  105.         return $this;
  106.     }
  107.     public function getIsactive(): ?string
  108.     {
  109.         return $this->isactive;
  110.     }
  111.     public function setIsactive(string $isactive): self
  112.     {
  113.         $this->isactive $isactive;
  114.         return $this;
  115.     }
  116.     public function getIsAccessAllOrgs(): ?string
  117.     {
  118.         return $this->isaccessallorgs;
  119.     }
  120.     public function setIsAccessAllOrgs(string $IsAccessAllOrgs): self
  121.     {
  122.         $this->isaccessallorgs $IsAccessAllOrgs;
  123.         return $this;
  124.     }
  125.     public function isAccessAllOrgs(): ?bool
  126.     {
  127.         return $this->getIsAccessAllOrgs() === "Y";
  128.     }
  129.     public function getIsUseUserOrgAccess(): ?string
  130.     {
  131.         return $this->isuseuserorgaccess;
  132.     }
  133.     public function setIsUseUserOrgAccesss(string $IsUseUserOrgAccesss): self
  134.     {
  135.         $this->isuseuserorgaccess $IsUseUserOrgAccesss;
  136.         return $this;
  137.     }
  138.     public function isUseUserOrgAccess(): ?bool
  139.     {
  140.         return $this->getIsUseUserOrgAccess() === "Y";
  141.     }
  142.     public function getIscanexport(): ?string
  143.     {
  144.         return $this->iscanexport;
  145.     }
  146.     public function setIscanexport(string $iscanexport): self
  147.     {
  148.         $this->iscanexport $iscanexport;
  149.         return $this;
  150.     }
  151.     public function getIschangelog(): ?string
  152.     {
  153.         return $this->ischangelog;
  154.     }
  155.     public function setIschangelog(string $ischangelog): self
  156.     {
  157.         $this->ischangelog $ischangelog;
  158.         return $this;
  159.     }
  160.     public function getIsshowacct(): ?string
  161.     {
  162.         return $this->isshowacct;
  163.     }
  164.     public function setIsshowacct(string $isshowacct): self
  165.     {
  166.         $this->isshowacct $isshowacct;
  167.         return $this;
  168.     }
  169.     public function getCCurrencyId(): ?int
  170.     {
  171.         return $this->c_currency_id;
  172.     }
  173.     public function setCCurrencyId(?int $c_currency_id): self
  174.     {
  175.         $this->c_currency_id $c_currency_id;
  176.         return $this;
  177.     }
  178.     public function getIscanapproveowndoc(): ?string
  179.     {
  180.         return $this->iscanapproveowndoc;
  181.     }
  182.     public function setIscanapproveowndoc(string $iscanapproveowndoc): self
  183.     {
  184.         $this->iscanapproveowndoc $iscanapproveowndoc;
  185.         return $this;
  186.     }
  187.     /**
  188.      * @return Collection|AdRoleIncluded[]
  189.      */
  190.     public function getAdRoleIncludeds(): Collection
  191.     {
  192.         return $this->adRoleIncludeds;
  193.     }
  194.     public function addAdRoleIncluded(AdRoleIncluded $adRoleIncluded): self
  195.     {
  196.         if (!$this->adRoleIncludeds->contains($adRoleIncluded)) {
  197.             $this->adRoleIncludeds[] = $adRoleIncluded;
  198.             $adRoleIncluded->setAdRole($this);
  199.         }
  200.         return $this;
  201.     }
  202.     public function removeAdRoleIncluded(AdRoleIncluded $adRoleIncluded): self
  203.     {
  204.         if ($this->adRoleIncludeds->removeElement($adRoleIncluded)) {
  205.             // set the owning side to null (unless already changed)
  206.             if ($adRoleIncluded->getAdRole() === $this) {
  207.                 $adRoleIncluded->setAdRole(null);
  208.             }
  209.         }
  210.         return $this;
  211.     }
  212.     /**
  213.      * @return Collection<int, AdUserRoles>
  214.      */
  215.     public function getAdUserRoles(): Collection
  216.     {
  217.         return $this->ad_user_roles;
  218.     }
  219.     public function addAdUserRole(AdUserRoles $adUserRole): self
  220.     {
  221.         if (!$this->ad_user_roles->contains($adUserRole)) {
  222.             $this->ad_user_roles[] = $adUserRole;
  223.             $adUserRole->setAdRole($this);
  224.         }
  225.         return $this;
  226.     }
  227.     public function removeAdUserRole(AdUserRoles $adUserRole): self
  228.     {
  229.         if ($this->ad_user_roles->removeElement($adUserRole)) {
  230.             // set the owning side to null (unless already changed)
  231.             if ($adUserRole->getAdRole() === $this) {
  232.                 $adUserRole->setAdRole(null);
  233.             }
  234.         }
  235.         return $this;
  236.     }
  237.     /**
  238.      * @return Collection<int, AdRoleOrgaccess>
  239.      */
  240.     public function getAdRoleOrgaccesses(): Collection
  241.     {
  242.         return $this->ad_role_orgaccesses;
  243.     }
  244.     public function addAdRoleOrgaccess(AdRoleOrgaccess $adRoleOrgaccess): self
  245.     {
  246.         if (!$this->ad_role_orgaccesses->contains($adRoleOrgaccess)) {
  247.             $this->ad_role_orgaccesses[] = $adRoleOrgaccess;
  248.             $adRoleOrgaccess->setAdRole($this);
  249.         }
  250.         return $this;
  251.     }
  252.     public function removeAdRoleOrgaccess(AdRoleOrgaccess $adRoleOrgaccess): self
  253.     {
  254.         if ($this->ad_role_orgaccesses->removeElement($adRoleOrgaccess)) {
  255.             // set the owning side to null (unless already changed)
  256.             if ($adRoleOrgaccess->getAdRole() === $this) {
  257.                 $adRoleOrgaccess->setAdRole(null);
  258.             }
  259.         }
  260.         return $this;
  261.     }
  262. }