src/OfficeBrain/Bundle/ServiceGroupBundle/Entity/ServiceRuleMappingInnerConditions.php line 14

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. /**
  6.  * ServiceRuleMappingInnerConditions.
  7.  *
  8.  * @ORM\Table(name="tbl_service_rule_mapping_inner_conditions")
  9.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\ServiceGroupBundle\Entity\ServiceRuleMappingInnerConditionsRepository")
  10.  */
  11. class ServiceRuleMappingInnerConditions
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="bigint",length=20, options={"unsigned"=true})
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var int
  23.      *
  24.      * @ORM\ManyToOne(targetEntity="ServiceRuleMappingMainConditions", inversedBy="ruleMapMainCondId")
  25.      * @ORM\JoinColumn(name="rule_mapping_main_condition_id", referencedColumnName="id")
  26.      */
  27.     private $ruleMappingMainConditionId;
  28.     /**
  29.      * @var string
  30.      *
  31.      * @ORM\Column(name="condition_field", type="string", length=100)
  32.      */
  33.     private $conditionField;
  34.     /**
  35.      * @var string
  36.      *
  37.      * @ORM\Column(name="condition_operator", type="string", length=50)
  38.      */
  39.     private $conditionOperator;
  40.     /**
  41.      * @var string
  42.      *
  43.      * @ORM\Column(name="condition_value", type="text")
  44.      */
  45.     private $conditionValue;
  46.     /**
  47.      * @var int
  48.      *
  49.      * @ORM\Column(name="display_order", type="integer")
  50.      */
  51.     private $displayOrder 0;
  52.     /**
  53.      * @var \DateTime
  54.      * @Gedmo\Timestampable(on="create")
  55.      * @ORM\Column(name="created_at", type="datetime")
  56.      */
  57.     private $createdAt;
  58.     /**
  59.      * @var \DateTime
  60.      * @Gedmo\Timestampable(on="update")
  61.      * @ORM\Column(name="updated_at", type="datetime", nullable=true)
  62.      */
  63.     private $updatedAt;
  64.     /**
  65.      * @var \DateTime
  66.      *
  67.      * @ORM\Column(name="deleted_at", type="datetime", nullable=true)
  68.      */
  69.     private $deletedAt;
  70.     /**
  71.      * @var int
  72.      * @ORM\Column(name="created_uid", type="bigint" ,length=20 ,options={"unsigned"=true})
  73.      */
  74.     private $createdUid;
  75.     /**
  76.      * @var int
  77.      * @ORM\Column(name="updated_uid", type="bigint" ,length=20 ,options={"unsigned"=true}, nullable=true)
  78.      */
  79.     private $updatedUid;
  80.     /**
  81.      * @var int
  82.      * @ORM\Column(name="deleted_uid", type="bigint" ,length=20 ,options={"unsigned"=true}, nullable=true)
  83.      */
  84.     private $deletedUid;
  85.     /**
  86.      * Get id.
  87.      *
  88.      * @return int
  89.      */
  90.     public function getId()
  91.     {
  92.         return $this->id;
  93.     }
  94.     /**
  95.      * Set ruleMappingMainConditionId.
  96.      *
  97.      * @param int $ruleMappingMainConditionId
  98.      *
  99.      * @return ServiceRuleMappingInnerConditions
  100.      */
  101.     public function setRuleMappingMainConditionId($ruleMappingMainConditionId)
  102.     {
  103.         $this->ruleMappingMainConditionId $ruleMappingMainConditionId;
  104.         return $this;
  105.     }
  106.     /**
  107.      * Get ruleMappingMainConditionId.
  108.      *
  109.      * @return int
  110.      */
  111.     public function getRuleMappingMainConditionId()
  112.     {
  113.         return $this->ruleMappingMainConditionId;
  114.     }
  115.     /**
  116.      * Set conditionField.
  117.      *
  118.      * @param string $conditionField
  119.      *
  120.      * @return ServiceRuleMappingInnerConditions
  121.      */
  122.     public function setConditionField($conditionField)
  123.     {
  124.         $this->conditionField $conditionField;
  125.         return $this;
  126.     }
  127.     /**
  128.      * Get conditionField.
  129.      *
  130.      * @return string
  131.      */
  132.     public function getConditionField()
  133.     {
  134.         return $this->conditionField;
  135.     }
  136.     /**
  137.      * Set conditionOperator.
  138.      *
  139.      * @param string $conditionOperator
  140.      *
  141.      * @return ServiceRuleMappingInnerConditions
  142.      */
  143.     public function setConditionOperator($conditionOperator)
  144.     {
  145.         $this->conditionOperator $conditionOperator;
  146.         return $this;
  147.     }
  148.     /**
  149.      * Get conditionOperator.
  150.      *
  151.      * @return string
  152.      */
  153.     public function getConditionOperator()
  154.     {
  155.         return $this->conditionOperator;
  156.     }
  157.     /**
  158.      * Set conditionValue.
  159.      *
  160.      * @param string $conditionValue
  161.      *
  162.      * @return ServiceRuleMappingInnerConditions
  163.      */
  164.     public function setConditionValue($conditionValue)
  165.     {
  166.         if (is_array($conditionValue)) {
  167.             $conditionValue serialize($conditionValue);
  168.         }
  169.         $this->conditionValue $conditionValue;
  170.         return $this;
  171.     }
  172.     /**
  173.      * Get conditionValue.
  174.      *
  175.      * @return string
  176.      */
  177.     public function getConditionValue()
  178.     {
  179.         return $this->conditionValue;
  180.     }
  181.     /**
  182.      * Set display displayOrder.
  183.      *
  184.      * @param int $displayOrder
  185.      *
  186.      * @return ServiceRuleInnerCondition
  187.      */
  188.     public function setDisplayOrder($displayOrder)
  189.     {
  190.         $this->displayOrder $displayOrder;
  191.         return $this;
  192.     }
  193.     /**
  194.      * Get Display Display Order.
  195.      *
  196.      * @return int
  197.      */
  198.     public function getDisplayOrder()
  199.     {
  200.         return $this->displayOrder;
  201.     }
  202.     /**
  203.      * Set createdAt.
  204.      *
  205.      * @param \DateTime $createdAt
  206.      *
  207.      * @return ServiceRuleMappingInnerConditions
  208.      */
  209.     public function setCreatedAt($createdAt)
  210.     {
  211.         $this->createdAt $createdAt;
  212.         return $this;
  213.     }
  214.     /**
  215.      * Get createdAt.
  216.      *
  217.      * @return \DateTime
  218.      */
  219.     public function getCreatedAt()
  220.     {
  221.         return $this->createdAt;
  222.     }
  223.     /**
  224.      * Set updatedAt.
  225.      *
  226.      * @param \DateTime $updatedAt
  227.      *
  228.      * @return ServiceRuleMappingInnerConditions
  229.      */
  230.     public function setUpdatedAt($updatedAt)
  231.     {
  232.         $this->updatedAt $updatedAt;
  233.         return $this;
  234.     }
  235.     /**
  236.      * Get updatedAt.
  237.      *
  238.      * @return \DateTime
  239.      */
  240.     public function getUpdatedAt()
  241.     {
  242.         return $this->updatedAt;
  243.     }
  244.     /**
  245.      * Set deletedAt.
  246.      *
  247.      * @param \DateTime $deletedAt
  248.      *
  249.      * @return ServiceRuleMappingInnerConditions
  250.      */
  251.     public function setDeletedAt($deletedAt)
  252.     {
  253.         $this->deletedAt $deletedAt;
  254.         return $this;
  255.     }
  256.     /**
  257.      * Get deletedAt.
  258.      *
  259.      * @return \DateTime
  260.      */
  261.     public function getDeletedAt()
  262.     {
  263.         return $this->deletedAt;
  264.     }
  265.     /**
  266.      * Set createdUid.
  267.      *
  268.      * @param int $createdUid
  269.      *
  270.      * @return ServiceRuleMappingInnerConditions
  271.      */
  272.     public function setCreatedUid($createdUid)
  273.     {
  274.         $this->createdUid $createdUid;
  275.         return $this;
  276.     }
  277.     /**
  278.      * Get createdUid.
  279.      *
  280.      * @return int
  281.      */
  282.     public function getCreatedUid()
  283.     {
  284.         return $this->createdUid;
  285.     }
  286.     /**
  287.      * Set updatedUid.
  288.      *
  289.      * @param int $updatedUid
  290.      *
  291.      * @return ServiceRuleMappingInnerConditions
  292.      */
  293.     public function setUpdatedUid($updatedUid)
  294.     {
  295.         $this->updatedUid $updatedUid;
  296.         return $this;
  297.     }
  298.     /**
  299.      * Get updatedUid.
  300.      *
  301.      * @return int
  302.      */
  303.     public function getUpdatedUid()
  304.     {
  305.         return $this->updatedUid;
  306.     }
  307.     /**
  308.      * Set deletedUid.
  309.      *
  310.      * @param int $deletedUid
  311.      *
  312.      * @return ServiceRuleMappingInnerConditions
  313.      */
  314.     public function setDeletedUid($deletedUid)
  315.     {
  316.         $this->deletedUid $deletedUid;
  317.         return $this;
  318.     }
  319.     /**
  320.      * Get deletedUid.
  321.      *
  322.      * @return int
  323.      */
  324.     public function getDeletedUid()
  325.     {
  326.         return $this->deletedUid;
  327.     }
  328. }