vendor/uvdesk/automation-bundle/Entity/Workflow.php line 13

Open in your IDE?
  1. <?php
  2. namespace Webkul\UVDesk\AutomationBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Workflow
  6.  * @ORM\HasLifecycleCallbacks
  7.  * @ORM\Entity(repositoryClass="Webkul\UVDesk\AutomationBundle\Repository\WorkflowRepository")
  8.  * @ORM\Table(name="uv_workflow")
  9.  */
  10. class Workflow
  11. {
  12.     /**
  13.      * @var integer
  14.      * @ORM\Id;
  15.      * @ORM\Column(type="integer")
  16.      * @ORM\GeneratedValue
  17.      */
  18.     private $id;
  19.     /**
  20.      * @var string
  21.      * @ORM\Column(type="string", length=191) 
  22.      */
  23.     private $name;
  24.     /**
  25.      * @var string
  26.      * @ORM\Column(type="text", nullable=true)
  27.      */
  28.     private $description;
  29.     /**
  30.      * @var array
  31.      * @ORM\Column(type="array")
  32.      */
  33.     private $conditions;
  34.     /**
  35.      * @var array
  36.      * @ORM\Column(type="array")
  37.      */
  38.     private $actions;
  39.     /**
  40.      * @var integer
  41.      * @ORM\Column(type="integer", nullable=true)
  42.      */
  43.     private $sortOrder;
  44.     /**
  45.      * @var boolean
  46.      * @ORM\Column(type="boolean", options={"default": true})
  47.      */
  48.     private $isPredefind true;
  49.     /**
  50.      * @var boolean
  51.      * @ORM\Column(type="boolean", options={"default": true})
  52.      */
  53.     private $status true;
  54.     /**
  55.      * @var \DateTime
  56.      * @ORM\Column(type="datetime")
  57.      */
  58.     private $dateAdded;
  59.     /**
  60.      * @var \DateTime
  61.      * @ORM\Column(type="datetime")
  62.      */
  63.     private $dateUpdated;
  64.     /**
  65.      * @var \Doctrine\Common\Collections\Collection
  66.      * @ORM\OneToMany(targetEntity="Webkul\UVDesk\AutomationBundle\Entity\WorkflowEvents", mappedBy="workflow")
  67.      * 
  68.      */
  69.     private $workflowEvents;
  70.     /**
  71.      * Constructor
  72.      */
  73.     public function __construct()
  74.     {
  75.         $this->workflowEvents = new \Doctrine\Common\Collections\ArrayCollection();
  76.     }
  77.     /**
  78.      * Get id
  79.      *
  80.      * @return integer
  81.      */
  82.     public function getId()
  83.     {
  84.         return $this->id;
  85.     }
  86.     /**
  87.      * Set name
  88.      *
  89.      * @param string $name
  90.      *
  91.      * @return Workflow
  92.      */
  93.     public function setName($name)
  94.     {
  95.         $this->name $name;
  96.         return $this;
  97.     }
  98.     /**
  99.      * Get name
  100.      *
  101.      * @return string
  102.      */
  103.     public function getName()
  104.     {
  105.         return $this->name;
  106.     }
  107.     /**
  108.      * Set description
  109.      *
  110.      * @param string $description
  111.      *
  112.      * @return Workflow
  113.      */
  114.     public function setDescription($description)
  115.     {
  116.         $this->description $description;
  117.         return $this;
  118.     }
  119.     /**
  120.      * Get description
  121.      *
  122.      * @return string
  123.      */
  124.     public function getDescription()
  125.     {
  126.         return $this->description;
  127.     }
  128.     /**
  129.      * Set conditions
  130.      *
  131.      * @param array $conditions
  132.      *
  133.      * @return Workflow
  134.      */
  135.     public function setConditions($conditions)
  136.     {
  137.         $this->conditions $conditions;
  138.         return $this;
  139.     }
  140.     /**
  141.      * Get conditions
  142.      *
  143.      * @return array
  144.      */
  145.     public function getConditions()
  146.     {
  147.         return $this->conditions;
  148.     }
  149.     /**
  150.      * Set actions
  151.      *
  152.      * @param array $actions
  153.      *
  154.      * @return Workflow
  155.      */
  156.     public function setActions($actions)
  157.     {
  158.         $this->actions $actions;
  159.         return $this;
  160.     }
  161.     /**
  162.      * Get actions
  163.      *
  164.      * @return array
  165.      */
  166.     public function getActions()
  167.     {
  168.         return $this->actions;
  169.     }
  170.     /**
  171.      * Set sortOrder
  172.      *
  173.      * @param integer $sortOrder
  174.      *
  175.      * @return Workflow
  176.      */
  177.     public function setSortOrder($sortOrder)
  178.     {
  179.         $this->sortOrder $sortOrder;
  180.         return $this;
  181.     }
  182.     /**
  183.      * Get sortOrder
  184.      *
  185.      * @return integer
  186.      */
  187.     public function getSortOrder()
  188.     {
  189.         return $this->sortOrder;
  190.     }
  191.     /**
  192.      * Set isPredefind
  193.      *
  194.      * @param boolean $isPredefind
  195.      *
  196.      * @return Workflow
  197.      */
  198.     public function setIsPredefind($isPredefind)
  199.     {
  200.         $this->isPredefind $isPredefind;
  201.         return $this;
  202.     }
  203.     /**
  204.      * Get isPredefind
  205.      *
  206.      * @return boolean
  207.      */
  208.     public function getIsPredefind()
  209.     {
  210.         return $this->isPredefind;
  211.     }
  212.     /**
  213.      * Set status
  214.      *
  215.      * @param boolean $status
  216.      *
  217.      * @return Workflow
  218.      */
  219.     public function setStatus($status)
  220.     {
  221.         $this->status $status;
  222.         return $this;
  223.     }
  224.     /**
  225.      * Get status
  226.      *
  227.      * @return boolean
  228.      */
  229.     public function getStatus()
  230.     {
  231.         return $this->status;
  232.     }
  233.     /**
  234.      * Set dateAdded
  235.      *
  236.      * @param \DateTime $dateAdded
  237.      *
  238.      * @return Workflow
  239.      */
  240.     public function setDateAdded($dateAdded)
  241.     {
  242.         $this->dateAdded $dateAdded;
  243.         return $this;
  244.     }
  245.     /**
  246.      * Get dateAdded
  247.      *
  248.      * @return \DateTime
  249.      */
  250.     public function getDateAdded()
  251.     {
  252.         return $this->dateAdded;
  253.     }
  254.     /**
  255.      * Set dateUpdated
  256.      *
  257.      * @param \DateTime $dateUpdated
  258.      *
  259.      * @return Workflow
  260.      */
  261.     public function setDateUpdated($dateUpdated)
  262.     {
  263.         $this->dateUpdated $dateUpdated;
  264.         return $this;
  265.     }
  266.     /**
  267.      * Get dateUpdated
  268.      *
  269.      * @return \DateTime
  270.      */
  271.     public function getDateUpdated()
  272.     {
  273.         return $this->dateUpdated;
  274.     }
  275.     /**
  276.      * Add workflowEvent
  277.      *
  278.      * @param \Webkul\UVDesk\AutomationBundle\Entity\WorkflowEvents $workflowEvent
  279.      *
  280.      * @return Workflow
  281.      */
  282.     public function addWorkflowEvent(\Webkul\UVDesk\AutomationBundle\Entity\WorkflowEvents $workflowEvent)
  283.     {
  284.         $this->workflowEvents[] = $workflowEvent;
  285.         return $this;
  286.     }
  287.     /**
  288.      * Remove workflowEvent
  289.      *
  290.      * @param \Webkul\UVDesk\AutomationBundle\Entity\WorkflowEvents $workflowEvent
  291.      */
  292.     public function removeWorkflowEvent(\Webkul\UVDesk\AutomationBundle\Entity\WorkflowEvents $workflowEvent)
  293.     {
  294.         $this->workflowEvents->removeElement($workflowEvent);
  295.     }
  296.     /**
  297.      * Get workflowEvents
  298.      *
  299.      * @return \Doctrine\Common\Collections\Collection
  300.      */
  301.     public function getWorkflowEvents()
  302.     {
  303.         return $this->workflowEvents;
  304.     }
  305.     /**
  306.      * @ORM\PrePersist
  307.      */
  308.     public function setCreatedAtValue()
  309.     {
  310.         // Add your code here
  311.     }
  312.     /**
  313.      * @ORM\PreUpdate
  314.      */
  315.     public function setUpdatedAtValue()
  316.     {
  317.         // Add your code here
  318.     }
  319. }