protected function getNotValidRequestExMsg($requestObj)
    {
        // We check the type first
        if (is_object($requestObj)) {
            $type = get_class($requestObj);
        } else {
            $type = gettype($requestObj);
        }

        // We return the message
        return sprintf(
            '[%s] Unknown request object. Expected was \'%s\' but got \'%s\'.',
            $this->getApiName(),
            '\RemoteHost\Api\ActionRequestInterface',
            $type
        );
    }
protected function getNotValidRequestExMsg($requestObj)
    {
        // We check the type first
        if (is_object($requestObj)) {
            $type = get_class($requestObj);
        } else {
            $type = gettype($requestObj);
        }

        // We return the message
        return sprintf(
            '[%s] Unknown request object. Expected was \'%s\' but got \'%s\'.',
            $this->getApiName(),
            '\RemoteHost\Api\ActionRequestInterface',
            $type
        );
    }
protected function getNotValidRequestExMsg ( $ requestObj ) { // We check the type first if ( is_object ( $ requestObj ) ) { $ type = get_class ( $ requestObj ) ; } else { $ type = gettype ( $ requestObj ) ; } // We return the message return sprintf ( '[%s] Unknown request object. Expected was \'%s\' but got \'%s\'.' , $ this -> getApiName ( ) , '\RemoteHost\Api\ActionRequestInterface' , $ type ) ; }
Returns a message for a not valid request object exception

@param mixed $requestObj the request object to be checked

@return string
Returns a message for a not valid request object exception