public function addResult(Result $result): self
    {
        $handler = $result->getHandlerName();
        $this->results[$handler][] = $result;

        return $this;
    }
public function addResult(Result $result): self
    {
        $handler = $result->getHandlerName();
        $this->results[$handler][] = $result;

        return $this;
    }
public function addResult ( Result $ result ) : self { $ handler = $ result -> getHandlerName ( ) ; $ this -> results [ $ handler ] [ ] = $ result ; return $ this ; }
Add a result to the array.

@param Result $result

@return $this
Add a result to the array .