vendor/uvdesk/automation-bundle/Entity/WorkflowEvents.php line 107

Open in your IDE?
  1. <?php
  2. namespace Webkul\UVDesk\AutomationBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * WorkflowEvents
  6. * @ORM\HasLifecycleCallbacks
  7. * @ORM\Entity(repositoryClass="Webkul\UVDesk\AutpmationBundle\Repository\WorkflowEventsRepository")
  8. * @ORM\Table(name="uv_workflow_events")
  9. */
  10. class WorkflowEvents
  11. {
  12. /**
  13. * @var integer
  14. * @ORM\Id()
  15. * @ORM\Column(type="integer")
  16. * @ORM\GeneratedValue
  17. */
  18. private $id;
  19. /**
  20. * @var integer
  21. * @ORM\Column(type="integer")
  22. */
  23. private $eventId;
  24. /**
  25. * @var string
  26. * @ORM\Column(type="string", length=191)
  27. */
  28. private $event;
  29. /**
  30. * @var \Webkul\UVDesk\AutomationBundle\Entity\Workflow
  31. * @ORM\ManyToOne(targetEntity="Webkul\UVDesk\AutomationBundle\Entity\Workflow", inversedBy="WorkflowEvents")
  32. * @ORM\JoinColumn(name="workflow_id", referencedColumnName="id", onDelete="CASCADE")
  33. */
  34. private $workflow;
  35. /**
  36. * Get id
  37. *
  38. * @return integer
  39. */
  40. public function getId()
  41. {
  42. return $this->id;
  43. }
  44. /**
  45. * Set eventId
  46. *
  47. * @param integer $eventId
  48. *
  49. * @return WorkflowEvents
  50. */
  51. public function setEventId($eventId)
  52. {
  53. $this->eventId = $eventId;
  54. return $this;
  55. }
  56. /**
  57. * Get eventId
  58. *
  59. * @return integer
  60. */
  61. public function getEventId()
  62. {
  63. return $this->eventId;
  64. }
  65. /**
  66. * Set event
  67. *
  68. * @param string $event
  69. *
  70. * @return WorkflowEvents
  71. */
  72. public function setEvent($event)
  73. {
  74. $this->event = $event;
  75. return $this;
  76. }
  77. /**
  78. * Get event
  79. *
  80. * @return string
  81. */
  82. public function getEvent()
  83. {
  84. return $this->event;
  85. }
  86. /**
  87. * Set workflow
  88. *
  89. * @param \Webkul\UVDesk\AutomationBundle\Entity\Workflow $workflow
  90. *
  91. * @return WorkflowEvents
  92. */
  93. public function setWorkflow(\Webkul\UVDesk\AutomationBundle\Entity\Workflow $workflow = null)
  94. {
  95. $this->workflow = $workflow;
  96. return $this;
  97. }
  98. /**
  99. * Get workflow
  100. *
  101. * @return \Webkul\UVDesk\AutomationBundle\Entity\Workflow
  102. */
  103. public function getWorkflow()
  104. {
  105. return $this->workflow;
  106. }
  107. }