1 | <?php |
||
19 | class PersistenceCacheCollector extends DataCollector |
||
20 | { |
||
21 | /** |
||
22 | * @var PersistenceLogger |
||
23 | */ |
||
24 | private $logger; |
||
25 | |||
26 | public function __construct(PersistenceLogger $logger) |
||
30 | |||
31 | public function collect(Request $request, Response $response, \Exception $exception = null) |
||
40 | |||
41 | public function getName() |
||
45 | |||
46 | /** |
||
47 | * Returns call count. |
||
48 | * |
||
49 | * @deprecaterd since 7.5, use getStats(). |
||
50 | * |
||
51 | * @return int |
||
52 | */ |
||
53 | public function getCount() |
||
57 | |||
58 | /** |
||
59 | * Returns stats on Persistance cache usage. |
||
60 | * |
||
61 | * @since 7.5 |
||
62 | * |
||
63 | * @return int[<string>] |
||
|
|||
64 | */ |
||
65 | public function getStats() |
||
69 | |||
70 | /** |
||
71 | * Returns flag to indicate if logging of calls is enabled or not. |
||
72 | * |
||
73 | * Typically not enabled in prod. |
||
74 | * |
||
75 | * @return bool |
||
76 | */ |
||
77 | public function getCallsLoggingEnabled() |
||
81 | |||
82 | /** |
||
83 | * Returns all calls. |
||
84 | * |
||
85 | * @return array |
||
86 | */ |
||
87 | public function getCalls() |
||
115 | |||
116 | /** |
||
117 | * Returns un cached handlers being loaded. |
||
118 | * |
||
119 | * @return array |
||
120 | */ |
||
121 | public function getHandlers() |
||
132 | |||
133 | /** |
||
134 | * Returns un cached handlers being loaded. |
||
135 | * |
||
136 | * @return array |
||
137 | */ |
||
138 | public function getHandlersCount() |
||
142 | } |
||
143 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.