public function addAction(AbstractAction $action)
    {
        $action->setGroup($this);

        $this->actions[$action->getName()] = $action;

        return $this;
    }
public function addAction(AbstractAction $action)
    {
        $action->setGroup($this);

        $this->actions[$action->getName()] = $action;

        return $this;
    }
public function addAction ( AbstractAction $ action ) { $ action -> setGroup ( $ this ) ; $ this -> actions [ $ action -> getName ( ) ] = $ action ; return $ this ; }
Adds action.

@param AbstractAction $action Group action

@return $this
Adds action .