1 | <?php |
||
14 | class SkautisDataCollector extends DataCollector |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @var Skautis |
||
19 | * |
||
20 | * @method string app_id() |
||
21 | * @method bool test_mode() |
||
22 | * @method bool cache() |
||
23 | * @method bool compression() |
||
24 | * @method string role_id() |
||
25 | * @method string unit_id() |
||
26 | * @method string token() |
||
27 | * @method bool is_logged_in() |
||
28 | * @method \DateTime logout_date() |
||
29 | * @method bool maintenance() |
||
30 | */ |
||
31 | protected $skautis; |
||
32 | |||
33 | 2 | public function __construct(Skautis $skautis) |
|
37 | |||
38 | /** |
||
39 | * @inheritdoc |
||
40 | */ |
||
41 | 2 | public function collect(Request $request, Response $response, \Exception $exception = null) |
|
58 | |||
59 | 2 | public function __call($method, $args) |
|
63 | |||
64 | /** |
||
65 | * Ziska vsechny SkautisQuery |
||
66 | * @return SkautisQuery[] |
||
67 | */ |
||
68 | public function getRequests() |
||
72 | |||
73 | /** |
||
74 | * Pocet requestu |
||
75 | * @return int |
||
76 | */ |
||
77 | public function getRequestCount() |
||
81 | |||
82 | /** |
||
83 | * @return int Miliseconds |
||
84 | */ |
||
85 | public function getTotalTime() |
||
94 | |||
95 | /** |
||
96 | * @inheritdoc |
||
97 | */ |
||
98 | public function getName() |
||
102 | } |
||
103 |