Analytics   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A get() 0 4 1
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