src/OfficeBrain/Bundle/ServiceGroupBundle/Entity/ServiceRuleMappingGroup.php line 16

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