app/Plugin/TaxManagement42/Entity/Config.php line 13

Open in your IDE?
  1. <?php
  2. namespace Plugin\TaxManagement42\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Config
  6.  *
  7.  * @ORM\Table(name="plg_tax_management_config")
  8.  * @ORM\Entity(repositoryClass="Plugin\TaxManagement42\Repository\ConfigRepository")
  9.  */
  10. class Config
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @return int
  22.      */
  23.     public function getId()
  24.     {
  25.         return $this->id;
  26.     }
  27.     /**
  28.      * @var boolean
  29.      *
  30.      * @ORM\Column(name="discount_rate_flag", type="boolean", options={"default":false})
  31.      */
  32.     private $discount_rate_flag;
  33.     /**
  34.      * @var boolean
  35.      *
  36.      * @ORM\Column(name="include_tax_flag", type="boolean", options={"default":true})
  37.      */
  38.     private $include_tax_flag;
  39.     /**
  40.      * @var int
  41.      *
  42.      * @ORM\Column(name="display_discount_type", type="integer", options={"default":0})
  43.      */
  44.     private $display_discount_type;
  45.     /**
  46.      * @return bool
  47.      */
  48.      public function isDiscountRateFlag(): bool
  49.     {
  50.         return $this->discount_rate_flag === true;
  51.     }
  52.  
  53.     /**
  54.     * @param bool $discount_rate_flag
  55.     */
  56.     public function setDiscountRateFlag($discount_rate_flag)
  57.     {
  58.         $this->discount_rate_flag $discount_rate_flag;
  59.     }
  60.     /**
  61.     * @return bool
  62.     */
  63.     public function getDiscountRateFlag()
  64.     {
  65.         return $this->discount_rate_flag;
  66.     }
  67.     /**
  68.      * @return bool
  69.      */
  70.      public function isIncludeTaxFlag(): bool
  71.     {
  72.         return $this->include_tax_flag === true;
  73.     }
  74.  
  75.     /**
  76.     * @param bool $include_tax_flag
  77.     */
  78.     public function setIncludeTaxFlag($include_tax_flag)
  79.     {
  80.         $this->include_tax_flag $include_tax_flag;
  81.     }
  82.     /**
  83.     * @return bool
  84.     */
  85.     public function getIncludeTaxFlag()
  86.     {
  87.         return $this->include_tax_flag;
  88.     }
  89.     /**
  90.     * @param int $display_discount_type
  91.     */
  92.     public function setDisplayDiscountType($display_discount_type)
  93.     {
  94.         $this->display_discount_type $display_discount_type;
  95.     }
  96.     /**
  97.     * @return int
  98.     */
  99.     public function getDisplayDiscountType()
  100.     {
  101.         return $this->display_discount_type;
  102.     }
  103. }