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