Пример #1
0
 /**
  * @param ActionInterface $action
  * @return $this
  */
 public function addAction(ActionInterface $action)
 {
     $actions = $this->getActions();
     $action->setRule($this->getRule());
     $actions[] = $action;
     if (!$action->getId()) {
         $action->setId($this->getId() . '.' . sizeof($actions));
     }
     $this->setActions($actions);
     return $this;
 }