public function setActions($actions) { $this->clearActions(); foreach ($actions as $action) { $this->addAction($action); } return $this; }