public function checkTypeOfResponse( phpillowResponse $response )
    {
        if ( $response->type != $this->getType() )
        {
            throw new phpillowResponseNotFoundErrorException(
                array(
                     'error'  => 'mismatch',
                     'reason' => 'Type does not match: ' . $response->type . ' != ' . $this->getType(),
                )
            );
        }
    }
public function checkTypeOfResponse( phpillowResponse $response )
    {
        if ( $response->type != $this->getType() )
        {
            throw new phpillowResponseNotFoundErrorException(
                array(
                     'error'  => 'mismatch',
                     'reason' => 'Type does not match: ' . $response->type . ' != ' . $this->getType(),
                )
            );
        }
    }
public function checkTypeOfResponse ( phpillowResponse $ response ) { if ( $ response -> type != $ this -> getType ( ) ) { throw new phpillowResponseNotFoundErrorException ( array ( 'error' => 'mismatch' , 'reason' => 'Type does not match: ' . $ response -> type . ' != ' . $ this -> getType ( ) , ) ) ; } }
Verifies that the fetched document is of the given type

@param phpillowResponse $response
@return void
Verifies that the fetched document is of the given type