Open Journal Systems  3.3.0
Http\Message\RequestMatcher\CallbackRequestMatcher Class Reference
Inheritance diagram for Http\Message\RequestMatcher\CallbackRequestMatcher:
Http\Message\RequestMatcher\RequestMatcher Http\Message\RequestMatcher

Public Member Functions

 __construct (callable $callback)
 
 matches (RequestInterface $request)
 
- Public Member Functions inherited from Http\Message\RequestMatcher\RequestMatcher
 __construct ($path=null, $host=null, $methods=[], $schemes=[])
 

Detailed Description

Match a request with a callback.

Author
Márk Sági-Kazár mark..nosp@m.sagi.nosp@m.kazar.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition at line 13 of file CallbackRequestMatcher.php.

Constructor & Destructor Documentation

◆ __construct()

Http\Message\RequestMatcher\CallbackRequestMatcher::__construct ( callable  $callback)
Parameters
callable$callback

Definition at line 26 of file CallbackRequestMatcher.php.

Member Function Documentation

◆ matches()

Http\Message\RequestMatcher\CallbackRequestMatcher::matches ( RequestInterface  $request)

{{Decides whether the rule(s) implemented by the strategy matches the supplied request.

Parameters
RequestInterface$requestThe PSR7 request to check for a match
Returns
bool true if the request matches, false otherwise
}@api}

Reimplemented from Http\Message\RequestMatcher\RequestMatcher.

Definition at line 34 of file CallbackRequestMatcher.php.


The documentation for this class was generated from the following file: