| 1 | <?php |
||
| 10 | class Target |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var \Psr\Http\Message\UriInterface |
||
| 14 | */ |
||
| 15 | private $uri; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string[] |
||
| 19 | */ |
||
| 20 | private $additionalHeaders; |
||
| 21 | |||
| 22 | 48 | public function __construct(\Psr\Http\Message\UriInterface $uri, array $additionalHeaders = []) |
|
| 27 | |||
| 28 | 12 | public static function fromConfig($config): self |
|
| 44 | |||
| 45 | 42 | public function applyToRequest(RequestInterface $request, string $action): RequestInterface |
|
| 53 | |||
| 54 | 42 | public function applyToResponse(ResponseInterface $response, string $action): ResponseInterface |
|
| 61 | } |
||
| 62 |