public function getActionResult($action = null)
    {
        $result = $this->results;

        if (!empty($action)) {
            $result = $this->results[$action];
        }

        return $result;
    }
public function getActionResult($action = null)
    {
        $result = $this->results;

        if (!empty($action)) {
            $result = $this->results[$action];
        }

        return $result;
    }
public function getActionResult ( $ action = null ) { $ result = $ this -> results ; if ( ! empty ( $ action ) ) { $ result = $ this -> results [ $ action ] ; } return $ result ; }
Gets the complete set of results or a specific action's results.

@param string $action Optional action name.
@return array
Gets the complete set of results or a specific action s results .