Total Complexity | 5 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class RestrictionsCollector implements DataCollectorInterface |
||
11 | { |
||
12 | private $data; |
||
13 | |||
14 | /** @var StorageManager $storageManager */ |
||
15 | private $storageManager; |
||
16 | |||
17 | /** |
||
18 | * @inheritdoc |
||
19 | */ |
||
20 | public function collect(Request $request, Response $response, \Exception $exception = null) |
||
25 | ]; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return array |
||
30 | */ |
||
31 | public function getRestrictionsCount() |
||
32 | { |
||
33 | return $this->data['restrictionsCount']; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return array |
||
38 | */ |
||
39 | public function getRestrictions() |
||
40 | { |
||
41 | return $this->data['restrictions']; |
||
42 | } |
||
43 | |||
44 | public function getName() |
||
45 | { |
||
46 | return 'nv.request_limit.restrictions_collector'; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @param StorageManager $manager |
||
51 | */ |
||
52 | public function setStorageManager(StorageManager $manager) |
||
55 | } |
||
56 | } |
||
57 |