Exemplo n.º 1
0
 /**
  * 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;
 }
Exemplo n.º 2
0
 /**
  * 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;
 }