public function get() {
        if( $this->value !== null ) return $this->value;
        if( $this->error !== null ) throw $this->error;
        throw new \LogicException("Value and error cannot both be null");
    }
public function get() {
        if( $this->value !== null ) return $this->value;
        if( $this->error !== null ) throw $this->error;
        throw new \LogicException("Value and error cannot both be null");
    }
public function get ( ) { if ( $ this -> value !== null ) return $ this -> value ; if ( $ this -> error !== null ) throw $ this -> error ; throw new \ LogicException ( "Value and error cannot both be null" ) ; }
Returns the value of the result if it is a success

If it is an error, the exception it was created with is thrown
Returns the value of the result if it is a success