Completed
Pull Request — master (#29)
by Hugo
01:27
created

Statistics::processResponse()   A

Complexity

Conditions 5
Paths 3

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.6111
c 0
b 0
f 0
cc 5
nc 3
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yproximite\WannaSpeakBundle\Api;
6
7
use Yproximite\WannaSpeakBundle\HttpClientInterface;
8
9
class Statistics implements StatisticsInterface
10
{
11
    private $client;
12
13
    public function __construct(HttpClientInterface $client)
14
    {
15
        $this->client = $client;
16
    }
17
18
    public function did(array $additionalArguments = []): array
19
    {
20
        $response = $this->client->request(self::API, 'did', $additionalArguments);
21
22
        return $response->toArray(); // @phpstan-ignore-line
23
    }
24
}
25