/** * Set count action. * * @param array $countAction * * @return $this */ public function setCountAction(array $countAction) { if ($countAction) { $this->countAction = new Action(); $this->countAction->setupOptionsResolver($countAction); } return $this; }
/** * Set actions. * * @param array $actions * * @return $this */ protected function setActions(array $actions) { foreach ($actions as $action) { $newAction = new Action(); $this->actions[] = $newAction->setupOptionsResolver($action); } return $this; }