1 | <?php |
||
24 | class EventProfiler |
||
25 | { |
||
26 | /** |
||
27 | * Debug backtrace limit |
||
28 | */ |
||
29 | const BACKTRACE_LIMIT = 6; |
||
30 | |||
31 | /** |
||
32 | * @var DebuggerInterface |
||
33 | */ |
||
34 | protected $debugger; |
||
35 | |||
36 | /** |
||
37 | * @var SharedEventManagerInterface |
||
38 | */ |
||
39 | protected $sharedEvents; |
||
40 | |||
41 | /** |
||
42 | * @var array |
||
43 | */ |
||
44 | protected $data = []; |
||
45 | |||
46 | /** |
||
47 | * @var string |
||
48 | */ |
||
49 | private $cwd; |
||
50 | |||
51 | /** |
||
52 | * @var EventInterface |
||
53 | */ |
||
54 | private $lastEvent; |
||
55 | |||
56 | /** |
||
57 | * @var string |
||
58 | */ |
||
59 | private $lastKey; |
||
60 | |||
61 | /** |
||
62 | * @param object|DebuggerInterface $debugger |
||
63 | * @param object|SharedEventManagerInterface $sharedEvents |
||
64 | */ |
||
65 | public function __construct(DebuggerInterface $debugger, SharedEventManagerInterface $sharedEvents) |
||
70 | |||
71 | /** |
||
72 | * @return array |
||
73 | */ |
||
74 | public function getData() |
||
79 | |||
80 | /** |
||
81 | * @param EventInterface $event |
||
82 | */ |
||
83 | public function setEvent(EventInterface $event) |
||
104 | |||
105 | /** |
||
106 | * @param EventInterface $event |
||
107 | * @return string |
||
108 | */ |
||
109 | protected function createEventKey(EventInterface $event) |
||
114 | |||
115 | /** |
||
116 | * @return array |
||
117 | */ |
||
118 | protected function createCallerTrace() |
||
137 | |||
138 | /** |
||
139 | * @param EventInterface $event |
||
140 | * @return array |
||
141 | */ |
||
142 | protected function createEventManagerCallbacks(EventInterface $event) |
||
161 | |||
162 | /** |
||
163 | * @param EventInterface $event |
||
164 | * @return array |
||
165 | */ |
||
166 | protected function createSharedEventManagerCallbacks(EventInterface $event) |
||
180 | |||
181 | /** |
||
182 | * @param PriorityQueue $listeners |
||
183 | * @return array |
||
184 | */ |
||
185 | protected function resolveCallbacks(PriorityQueue $listeners) |
||
196 | |||
197 | /** |
||
198 | * @param CallbackHandler $listener |
||
199 | * @return array |
||
200 | */ |
||
201 | protected function resolveCallbackFromListener(CallbackHandler $listener) |
||
227 | |||
228 | /** |
||
229 | * @param \Closure $function |
||
230 | * @return string |
||
231 | */ |
||
232 | protected function resolveCallbackIdFromClosure(\Closure $function) |
||
247 | |||
248 | /** |
||
249 | * @param object $object |
||
250 | * @param string $method |
||
251 | * @return string |
||
252 | */ |
||
253 | protected function createMethodName($object, $method) |
||
257 | } |
||
258 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.