QueryAuth\Request\RequestInterface::getParams PHP Метод

getParams() публичный Метод

Gets request parameters
public getParams ( ) : array
Результат array
    public function getParams();

Usage Example

Пример #1
0
 /**
  * Is signature valid?
  *
  * @param  RequestInterface          $request     Request
  * @param  CredentialsInterface      $credentials Credentials
  * @throws DriftExceededException    If timestamp greater than or less than allowable drift
  * @throws SignatureMissingException If signature is missing from request
  * @throws TimestampMissingException If timestamp is missing from request
  * @return boolean
  */
 public function isValid(RequestInterface $request, CredentialsInterface $credentials)
 {
     $params = $request->getParams();
     $this->isSignaturePresent($params);
     $this->isTimestampPresent($params);
     $this->isDriftExceeded($params);
     return $params['signature'] === $this->signature->createSignature($request, $credentials);
 }
All Usage Examples Of QueryAuth\Request\RequestInterface::getParams