src/OfficeBrain/Bundle/ServiceGroupBundle/Entity/ServiceRuleChargesEquation.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\ServiceGroupBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * ServiceRuleChargesEquation.
  8.  *
  9.  * @ORM\Table("tbl_service_rule_charges_equations")
  10.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\ServiceGroupBundle\Entity\ServiceRuleChargesEquationRepository")
  11.  */
  12. class ServiceRuleChargesEquation
  13. {
  14.     /**
  15.      * @var int
  16.      *
  17.      * @ORM\Column(name="id", type="bigint",length=20, options={"unsigned"=true})
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="AUTO")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var int
  24.      *
  25.      * @ORM\ManyToOne(targetEntity="ServiceRuleMappingMaster", inversedBy="serviceRuleChargesEquationId", cascade={"persist"})
  26.      * @ORM\JoinColumn(name="service_rule_mapping_id", referencedColumnName="id")
  27.      */
  28.     private $serviceRuleMappingId;
  29.     /**
  30.      * @var float
  31.      *
  32.      * @ORM\Column(name="base_charge1", type="float", precision=10, scale=0, nullable=true)
  33.      */
  34.     private $baseCharge1;
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(name="condition_operator1", type="string", length=50)
  39.      */
  40.     private $conditionOperator1;
  41.     /**
  42.      * @var float
  43.      *
  44.      * @ORM\Column(name="base_charge2", type="float", precision=10, scale=0, nullable=true)
  45.      */
  46.     private $baseCharge2;
  47.     /**
  48.      * @var string
  49.      *
  50.      * @ORM\Column(name="condition_operator2", type="string", length=50)
  51.      */
  52.     private $conditionOperator2;
  53.     /**
  54.      * @var int
  55.      *
  56.      * @ORM\Column(name="amount_type", type="integer", nullable=true)
  57.      */
  58.     private $amountType;
  59.     /**
  60.      * @var float
  61.      *
  62.      * @ORM\Column(name="amount", type="float", precision=10, scale=0, nullable=true)
  63.      */
  64.     private $amount;
  65.     /**
  66.      * @var bool
  67.      *
  68.      * @ORM\Column(name="is_column_qty", type="boolean", nullable=true)
  69.      */
  70.     private $isColumnQty false;
  71.     /**
  72.      * @var bool
  73.      *
  74.      * @ORM\Column(name="is_per_color", type="boolean", nullable=true)
  75.      */
  76.     private $isPerColor false;
  77.     /**
  78.      * @var bool
  79.      *
  80.      * @ORM\Column(name="is_per_location", type="boolean", nullable=true)
  81.      */
  82.     private $isPerLocation false;
  83.     /**
  84.      * @var \DateTime
  85.      *
  86.      * @ORM\Column(name="deleted_at", type="date", nullable=true)
  87.      */
  88.     private $deletedAt;
  89.     /**
  90.      * @var \DateTime
  91.      * @Gedmo\Timestampable(on="create")
  92.      * @ORM\Column(name="created_at", type="date")
  93.      */
  94.     private $createdAt;
  95.     /**
  96.      * @var \DateTime
  97.      * @Gedmo\Timestampable(on="update")
  98.      * @ORM\Column(name="updated_at", type="date")
  99.      */
  100.     private $updatedAt;
  101.     /**
  102.      * @var int
  103.      * @ORM\Column(name="created_uid", type="bigint" ,length=20 ,options={"unsigned"=true})
  104.      */
  105.     private $createdUid;
  106.     /**
  107.      * @var int
  108.      * @ORM\Column(name="updated_uid", type="bigint" ,length=20 ,options={"unsigned"=true}, nullable=true)
  109.      */
  110.     private $updatedUid;
  111.     /**
  112.      * @var int
  113.      * @ORM\Column(name="deleted_uid", type="bigint" ,length=20 ,options={"unsigned"=true}, nullable=true)
  114.      */
  115.     private $deletedUid;
  116.     /**
  117.      * Get id.
  118.      *
  119.      * @return int
  120.      */
  121.     public function getId()
  122.     {
  123.         return $this->id;
  124.     }
  125.     /**
  126.      * Set baseCharge1
  127.      *
  128.      * @param float $baseCharge1
  129.      * @return ServiceRuleChargesEquation
  130.      */
  131.     public function setBaseCharge1($baseCharge1)
  132.     {
  133.         $this->baseCharge1 $baseCharge1;
  134.         return $this;
  135.     }
  136.     /**
  137.      * Get baseCharge1
  138.      *
  139.      * @return float
  140.      */
  141.     public function getBaseCharge1()
  142.     {
  143.         return $this->baseCharge1;
  144.     }
  145.     /**
  146.      * Set conditionOperator1
  147.      *
  148.      * @param string $conditionOperator1
  149.      * @return ServiceRuleChargesEquation
  150.      */
  151.     public function setConditionOperator1($conditionOperator1)
  152.     {
  153.         $this->conditionOperator1 $conditionOperator1;
  154.         return $this;
  155.     }
  156.     /**
  157.      * Get conditionOperator1
  158.      *
  159.      * @return string
  160.      */
  161.     public function getConditionOperator1()
  162.     {
  163.         return $this->conditionOperator1;
  164.     }
  165.     /**
  166.      * Set baseCharge2
  167.      *
  168.      * @param float $baseCharge2
  169.      * @return ServiceRuleChargesEquation
  170.      */
  171.     public function setBaseCharge2($baseCharge2)
  172.     {
  173.         $this->baseCharge2 $baseCharge2;
  174.         return $this;
  175.     }
  176.     /**
  177.      * Get baseCharge2
  178.      *
  179.      * @return float
  180.      */
  181.     public function getBaseCharge2()
  182.     {
  183.         return $this->baseCharge2;
  184.     }
  185.     /**
  186.      * Set conditionOperator2
  187.      *
  188.      * @param string $conditionOperator2
  189.      * @return ServiceRuleChargesEquation
  190.      */
  191.     public function setConditionOperator2($conditionOperator2)
  192.     {
  193.         $this->conditionOperator2 $conditionOperator2;
  194.         return $this;
  195.     }
  196.     /**
  197.      * Get conditionOperator2
  198.      *
  199.      * @return string
  200.      */
  201.     public function getConditionOperator2()
  202.     {
  203.         return $this->conditionOperator2;
  204.     }
  205.     /**
  206.      * Set amountType
  207.      *
  208.      * @param integer $amountType
  209.      * @return ServiceRuleChargesEquation
  210.      */
  211.     public function setAmountType($amountType)
  212.     {
  213.         $this->amountType $amountType;
  214.         return $this;
  215.     }
  216.     /**
  217.      * Get amountType
  218.      *
  219.      * @return integer
  220.      */
  221.     public function getAmountType()
  222.     {
  223.         return $this->amountType;
  224.     }
  225.     /**
  226.      * Set amount
  227.      *
  228.      * @param float $amount
  229.      * @return ServiceRuleChargesEquation
  230.      */
  231.     public function setAmount($amount)
  232.     {
  233.         $this->amount $amount;
  234.         return $this;
  235.     }
  236.     /**
  237.      * Get amount
  238.      *
  239.      * @return float
  240.      */
  241.     public function getAmount()
  242.     {
  243.         return $this->amount;
  244.     }
  245.     /**
  246.      * Set isColumnQty
  247.      *
  248.      * @param boolean $isColumnQty
  249.      * @return ServiceRuleChargesEquation
  250.      */
  251.     public function setIsColumnQty($isColumnQty)
  252.     {
  253.         $this->isColumnQty $isColumnQty;
  254.         return $this;
  255.     }
  256.     /**
  257.      * Get isColumnQty
  258.      *
  259.      * @return boolean
  260.      */
  261.     public function getIsColumnQty()
  262.     {
  263.         return $this->isColumnQty;
  264.     }
  265.     /**
  266.      * Set isPerColor
  267.      *
  268.      * @param boolean $isPerColor
  269.      * @return ServiceRuleChargesEquation
  270.      */
  271.     public function setIsPerColor($isPerColor)
  272.     {
  273.         $this->isPerColor $isPerColor;
  274.         return $this;
  275.     }
  276.     /**
  277.      * Get isPerColor
  278.      *
  279.      * @return boolean
  280.      */
  281.     public function getIsPerColor()
  282.     {
  283.         return $this->isPerColor;
  284.     }
  285.     /**
  286.      * Set isPerLocation
  287.      *
  288.      * @param boolean $isPerLocation
  289.      * @return ServiceRuleChargesEquation
  290.      */
  291.     public function setIsPerLocation($isPerLocation)
  292.     {
  293.         $this->isPerLocation $isPerLocation;
  294.         return $this;
  295.     }
  296.     /**
  297.      * Get isPerLocation
  298.      *
  299.      * @return boolean
  300.      */
  301.     public function getIsPerLocation()
  302.     {
  303.         return $this->isPerLocation;
  304.     }
  305.     /**
  306.      * Set deletedAt
  307.      *
  308.      * @param \DateTime $deletedAt
  309.      * @return ServiceRuleChargesEquation
  310.      */
  311.     public function setDeletedAt($deletedAt)
  312.     {
  313.         $this->deletedAt $deletedAt;
  314.         return $this;
  315.     }
  316.     /**
  317.      * Get deletedAt
  318.      *
  319.      * @return \DateTime
  320.      */
  321.     public function getDeletedAt()
  322.     {
  323.         return $this->deletedAt;
  324.     }
  325.     /**
  326.      * Set createdAt
  327.      *
  328.      * @param \DateTime $createdAt
  329.      * @return ServiceRuleChargesEquation
  330.      */
  331.     public function setCreatedAt($createdAt)
  332.     {
  333.         $this->createdAt $createdAt;
  334.         return $this;
  335.     }
  336.     /**
  337.      * Get createdAt
  338.      *
  339.      * @return \DateTime
  340.      */
  341.     public function getCreatedAt()
  342.     {
  343.         return $this->createdAt;
  344.     }
  345.     /**
  346.      * Set updatedAt
  347.      *
  348.      * @param \DateTime $updatedAt
  349.      * @return ServiceRuleChargesEquation
  350.      */
  351.     public function setUpdatedAt($updatedAt)
  352.     {
  353.         $this->updatedAt $updatedAt;
  354.         return $this;
  355.     }
  356.     /**
  357.      * Get updatedAt
  358.      *
  359.      * @return \DateTime
  360.      */
  361.     public function getUpdatedAt()
  362.     {
  363.         return $this->updatedAt;
  364.     }
  365.     /**
  366.      * Set createdUid
  367.      *
  368.      * @param integer $createdUid
  369.      * @return ServiceRuleChargesEquation
  370.      */
  371.     public function setCreatedUid($createdUid)
  372.     {
  373.         $this->createdUid $createdUid;
  374.         return $this;
  375.     }
  376.     /**
  377.      * Get createdUid
  378.      *
  379.      * @return integer
  380.      */
  381.     public function getCreatedUid()
  382.     {
  383.         return $this->createdUid;
  384.     }
  385.     /**
  386.      * Set updatedUid
  387.      *
  388.      * @param integer $updatedUid
  389.      * @return ServiceRuleChargesEquation
  390.      */
  391.     public function setUpdatedUid($updatedUid)
  392.     {
  393.         $this->updatedUid $updatedUid;
  394.         return $this;
  395.     }
  396.     /**
  397.      * Get updatedUid
  398.      *
  399.      * @return integer
  400.      */
  401.     public function getUpdatedUid()
  402.     {
  403.         return $this->updatedUid;
  404.     }
  405.     /**
  406.      * Set deletedUid
  407.      *
  408.      * @param integer $deletedUid
  409.      * @return ServiceRuleChargesEquation
  410.      */
  411.     public function setDeletedUid($deletedUid)
  412.     {
  413.         $this->deletedUid $deletedUid;
  414.         return $this;
  415.     }
  416.     /**
  417.      * Get deletedUid
  418.      *
  419.      * @return integer
  420.      */
  421.     public function getDeletedUid()
  422.     {
  423.         return $this->deletedUid;
  424.     }
  425.     /**
  426.      * Set serviceRuleMappingId
  427.      *
  428.      * @param \App\OfficeBrain\Bundle\ServiceGroupBundle\Entity\ServiceRuleMappingMaster $serviceRuleMappingId
  429.      * @return ServiceRuleChargesEquation
  430.      */
  431.     public function setServiceRuleMappingId($serviceRuleMappingId null)
  432.     {
  433.         $this->serviceRuleMappingId $serviceRuleMappingId;
  434.         return $this;
  435.     }
  436.     /**
  437.      * Get serviceRuleMappingId
  438.      *
  439.      * @return \App\OfficeBrain\Bundle\ServiceGroupBundle\Entity\ServiceRuleMappingMaster
  440.      */
  441.     public function getServiceRuleMappingId()
  442.     {
  443.         return $this->serviceRuleMappingId;
  444.     }
  445. }