Server IP : 66.29.132.124 / Your IP : 3.22.242.169 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/vendor/php-http/message/src/RequestMatcher/ |
Upload File : |
<?php namespace Http\Message\RequestMatcher; use Http\Message\RequestMatcher; use Psr\Http\Message\RequestInterface; /** * Match a request with a callback. * * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> */ final class CallbackRequestMatcher implements RequestMatcher { /** * @var callable */ private $callback; public function __construct(callable $callback) { $this->callback = $callback; } /** * {@inheritdoc} */ public function matches(RequestInterface $request) { return (bool) call_user_func($this->callback, $request); } }