for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Cerbero\LazyJsonPages\Sources;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
/**
* The PSR-7 request source.
*
* @property-read RequestInterface $source
*/
class Psr7Request extends Source
{
* Determine whether this class can handle the source.
public function matches(): bool
return $this->source instanceof RequestInterface;
}
* Retrieve the HTTP request.
public function request(): RequestInterface
return $this->source;
* Retrieve the HTTP response.
* @return ResponseInterface
public function response(): ResponseInterface
return $this->client->send($this->source);