src/Handler.php
protected function getActionsFromDataArray(array $actionsArray)
    {
        $actions = array();
        foreach ($actionsArray as $actionArray) {
            $action = new Action();

            if (isset($actionArray['name']) && is_string($actionArray['name'])) {
                $action->setName($actionArray['name']);
            }

            if (isset($actionArray['title']) && is_string($actionArray['title'])) {
                $action->setTitle($actionArray['title']);
            }

            if (isset($actionArray['method']) && is_string($actionArray['method'])) {
                $action->setMethod($actionArray['method']);
            }

            if (isset($actionArray['href']) && is_string($actionArray['href'])) {
                $action->setHref($actionArray['href']);
            }

            if (isset($actionArray['type']) && is_string($actionArray['type'])) {
                $action->setType($actionArray['type']);
            }

            if (isset($actionArray['fields']) && is_array($actionArray['fields'])) {
                $fields = $this->getFieldsFromDataArray($actionArray['fields']);
                $action->setFields($fields);
            }

            $actions[] = $action;
        }

        return $actions;
    }
protected function getActionsFromDataArray(array $actionsArray)
    {
        $actions = array();
        foreach ($actionsArray as $actionArray) {
            $action = new Action();

            if (isset($actionArray['name']) && is_string($actionArray['name'])) {
                $action->setName($actionArray['name']);
            }

            if (isset($actionArray['title']) && is_string($actionArray['title'])) {
                $action->setTitle($actionArray['title']);
            }

            if (isset($actionArray['method']) && is_string($actionArray['method'])) {
                $action->setMethod($actionArray['method']);
            }

            if (isset($actionArray['href']) && is_string($actionArray['href'])) {
                $action->setHref($actionArray['href']);
            }

            if (isset($actionArray['type']) && is_string($actionArray['type'])) {
                $action->setType($actionArray['type']);
            }

            if (isset($actionArray['fields']) && is_array($actionArray['fields'])) {
                $fields = $this->getFieldsFromDataArray($actionArray['fields']);
                $action->setFields($fields);
            }

            $actions[] = $action;
        }

        return $actions;
    }
Helper method to convert an action data array to an array of action objects

@param array $actionsArray
@return Action[]