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

Statistics::getAllStats()   A

Complexity

Conditions 3
Paths 4

Size

Total Lines 22

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
nc 4
nop 2
dl 0
loc 22
rs 9.568
c 0
b 0
f 0
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