src/Storage/Results/Results.php
public function addResult($child, $result) {
        if (!$result instanceof Result\ResultInterface) {
            throw new RuntimeException('Result type must be implements ResultInterface');
        }
        $this->results[$child - 1] = $result;
    }
public function addResult($child, $result) {
        if (!$result instanceof Result\ResultInterface) {
            throw new RuntimeException('Result type must be implements ResultInterface');
        }
        $this->results[$child - 1] = $result;
    }
public function addResult ( $ child , $ result ) { if ( ! $ result instanceof Result \ ResultInterface ) { throw new RuntimeException ( 'Result type must be implements ResultInterface' ) ; } $ this -> results [ $ child - 1 ] = $ result ; }
add a result object
add a result object