1 | <?php |
||
11 | class ExceptionDataCollector extends AbstractDataCollector |
||
12 | { |
||
13 | /** |
||
14 | * @var EntityManagerInterface |
||
15 | */ |
||
16 | private $em; |
||
17 | |||
18 | public function __construct(EntityManagerInterface $em) |
||
22 | |||
23 | /** |
||
24 | * @return array |
||
|
|||
25 | */ |
||
26 | public function getAccessRoles() |
||
30 | |||
31 | /** |
||
32 | * @return array |
||
33 | */ |
||
34 | public function collectData() |
||
45 | |||
46 | /** |
||
47 | * @param Request $request |
||
48 | * @param Response $response |
||
49 | * @param \Exception|null $exception |
||
50 | */ |
||
51 | public function collect(Request $request, Response $response, \Exception $exception = null) |
||
59 | |||
60 | /** |
||
61 | * Gets the data for template |
||
62 | * |
||
63 | * @return array The request events |
||
64 | */ |
||
65 | public function getTemplateData() |
||
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getName() |
||
77 | |||
78 | /** |
||
79 | * @return bool |
||
80 | */ |
||
81 | public function isEnabled() |
||
85 | |||
86 | public function reset() |
||
90 | } |
||
91 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.