Analytics::get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Scriptotek\Alma\Analytics;
4
5
use Scriptotek\Alma\Client;
6
use Scriptotek\Alma\Model\ReadOnlyArrayAccess;
7
8
/**
9
 * Non-iterable collection of Report resources.
10
 */
11
class Analytics implements \ArrayAccess
12
{
13
    use ReadOnlyArrayAccess;
14
15
    /** @var Client */
16
    protected $client;
17
18
    public function __construct(Client $client)
19
    {
20
        $this->client = $client;
21
    }
22
23
    public function get(...$args)
24
    {
25
        return new Report($this->client, ...$args);
26
    }
27
}
28