Total Complexity | 2 |
Total Lines | 11 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
23 | return new \Http\Client\Common\Plugin\AuthenticationPlugin(new class($this->{'apiKey'}) implements \Http\Message\Authentication { |
||
24 | private $apiKey; |
||
25 | |||
26 | public function __construct(string $apiKey) |
||
27 | { |
||
28 | $this->{'apiKey'} = $apiKey; |
||
29 | } |
||
30 | |||
31 | public function authenticate(\Psr\Http\Message\RequestInterface $request) |
||
34 | } |
||
35 | }); |
||
38 |