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