public function addActionResult($action, $result)
    {
        if (is_null($action)) {
            throw new \RuntimeException(
                'Attempt to provide a result without providing an action',
                1294080509
            );
        }

        $this->results[$action] = $result;
    }
public function addActionResult($action, $result)
    {
        if (is_null($action)) {
            throw new \RuntimeException(
                'Attempt to provide a result without providing an action',
                1294080509
            );
        }

        $this->results[$action] = $result;
    }
public function addActionResult ( $ action , $ result ) { if ( is_null ( $ action ) ) { throw new \ RuntimeException ( 'Attempt to provide a result without providing an action' , 1294080509 ) ; } $ this -> results [ $ action ] = $ result ; }
Adds an action's result.

@param string $action The action name.
@param mixed $result The action's result.
@throws \RuntimeException if $action is null
Adds an action s result .