name; } public function __construct() { $this->actions = new ArrayCollection(); } /** * Get id * * @return int */ public function getId() { return $this->id; } /** * @return string */ public function getName() { return $this->name; } /** * @param string $name * * @return $this */ public function setName($name) { $this->name = $name; return $this; } /** * @return string */ public function getEventName() { return $this->eventName; } /** * @param string $eventName * * @return $this */ public function setEventName($eventName) { $this->eventName = $eventName; return $this; } /** * @return string */ public function getEntityClass() { return $this->entityClass; } /** * @param string $entityClass * * @return $this */ public function setEntityClass($entityClass) { $this->entityClass = $entityClass; return $this; } /** * @param Action $action * * @return Workflow */ public function addAction($action) { $action->addDoctrine2WorkFlowAction($this); $this->actions[] = $action; return $this; } /** * @param Action $action * * @return Workflow */ public function removeAction($action) { $action->removeDoctrine2WorkFlowAction($this); $this->actions->removeElement($action); return $this; } /** * @return ArrayCollection */ public function getActions() { return $this->actions; } }