src/Eccube/Entity/AuthorityRole.php line 18

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of EC-CUBE
  4.  *
  5.  * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  6.  *
  7.  * http://www.ec-cube.co.jp/
  8.  *
  9.  * For the full copyright and license information, please view the LICENSE
  10.  * file that was distributed with this source code.
  11.  */
  12. namespace Eccube\Entity;
  13. use Doctrine\ORM\Mapping as ORM;
  14. if (!class_exists('\Eccube\Entity\AuthorityRole')) {
  15.     /**
  16.      * AuthorityRole
  17.      *
  18.      * @ORM\Table(name="dtb_authority_role")
  19.      * @ORM\InheritanceType("SINGLE_TABLE")
  20.      * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  21.      * @ORM\HasLifecycleCallbacks()
  22.      * @ORM\Entity(repositoryClass="Eccube\Repository\AuthorityRoleRepository")
  23.      */
  24.     class AuthorityRole extends \Eccube\Entity\AbstractEntity
  25.     {
  26.         /**
  27.          * @var int
  28.          *
  29.          * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  30.          * @ORM\Id
  31.          * @ORM\GeneratedValue(strategy="IDENTITY")
  32.          */
  33.         private $id;
  34.         /**
  35.          * @var string
  36.          *
  37.          * @ORM\Column(name="deny_url", type="string", length=4000)
  38.          */
  39.         private $deny_url;
  40.         /**
  41.          * @var \DateTime
  42.          *
  43.          * @ORM\Column(name="create_date", type="datetimetz")
  44.          */
  45.         private $create_date;
  46.         /**
  47.          * @var \DateTime
  48.          *
  49.          * @ORM\Column(name="update_date", type="datetimetz")
  50.          */
  51.         private $update_date;
  52.         /**
  53.          * @var \Eccube\Entity\Master\Authority
  54.          *
  55.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Authority")
  56.          * @ORM\JoinColumns({
  57.          *   @ORM\JoinColumn(name="authority_id", referencedColumnName="id")
  58.          * })
  59.          */
  60.         private $Authority;
  61.         /**
  62.          * @var \Eccube\Entity\Member
  63.          *
  64.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\Member")
  65.          * @ORM\JoinColumns({
  66.          *   @ORM\JoinColumn(name="creator_id", referencedColumnName="id")
  67.          * })
  68.          */
  69.         private $Creator;
  70.         /**
  71.          * Get id.
  72.          *
  73.          * @return int
  74.          */
  75.         public function getId()
  76.         {
  77.             return $this->id;
  78.         }
  79.         /**
  80.          * Set denyUrl.
  81.          *
  82.          * @param string $denyUrl
  83.          *
  84.          * @return AuthorityRole
  85.          */
  86.         public function setDenyUrl($denyUrl)
  87.         {
  88.             $this->deny_url $denyUrl;
  89.             return $this;
  90.         }
  91.         /**
  92.          * Get denyUrl.
  93.          *
  94.          * @return string
  95.          */
  96.         public function getDenyUrl()
  97.         {
  98.             return $this->deny_url;
  99.         }
  100.         /**
  101.          * Set createDate.
  102.          *
  103.          * @param \DateTime $createDate
  104.          *
  105.          * @return AuthorityRole
  106.          */
  107.         public function setCreateDate($createDate)
  108.         {
  109.             $this->create_date $createDate;
  110.             return $this;
  111.         }
  112.         /**
  113.          * Get createDate.
  114.          *
  115.          * @return \DateTime
  116.          */
  117.         public function getCreateDate()
  118.         {
  119.             return $this->create_date;
  120.         }
  121.         /**
  122.          * Set updateDate.
  123.          *
  124.          * @param \DateTime $updateDate
  125.          *
  126.          * @return AuthorityRole
  127.          */
  128.         public function setUpdateDate($updateDate)
  129.         {
  130.             $this->update_date $updateDate;
  131.             return $this;
  132.         }
  133.         /**
  134.          * Get updateDate.
  135.          *
  136.          * @return \DateTime
  137.          */
  138.         public function getUpdateDate()
  139.         {
  140.             return $this->update_date;
  141.         }
  142.         /**
  143.          * Set authority.
  144.          *
  145.          * @param \Eccube\Entity\Master\Authority|null $authority
  146.          *
  147.          * @return AuthorityRole
  148.          */
  149.         public function setAuthority(Master\Authority $authority null)
  150.         {
  151.             $this->Authority $authority;
  152.             return $this;
  153.         }
  154.         /**
  155.          * Get authority.
  156.          *
  157.          * @return \Eccube\Entity\Master\Authority|null
  158.          */
  159.         public function getAuthority()
  160.         {
  161.             return $this->Authority;
  162.         }
  163.         /**
  164.          * Set creator.
  165.          *
  166.          * @param \Eccube\Entity\Member|null $creator
  167.          *
  168.          * @return AuthorityRole
  169.          */
  170.         public function setCreator(Member $creator null)
  171.         {
  172.             $this->Creator $creator;
  173.             return $this;
  174.         }
  175.         /**
  176.          * Get creator.
  177.          *
  178.          * @return \Eccube\Entity\Member|null
  179.          */
  180.         public function getCreator()
  181.         {
  182.             return $this->Creator;
  183.         }
  184.     }
  185. }