1 | <?php |
||
10 | abstract class AbstractDecorator |
||
11 | { |
||
12 | /** |
||
13 | * @var ProfilerInterface |
||
14 | */ |
||
15 | private $profiler; |
||
16 | |||
17 | /** |
||
18 | * @var mixed |
||
19 | */ |
||
20 | private $decorated; |
||
21 | |||
22 | /** |
||
23 | * @return string |
||
24 | */ |
||
25 | abstract public function getComponentName(); |
||
26 | |||
27 | /** |
||
28 | * @param string $name |
||
29 | * @param array $arguments |
||
30 | * @return mixed |
||
31 | */ |
||
32 | 2 | public function __call($name, array $arguments) |
|
39 | |||
40 | /** |
||
41 | * @param string $methodName |
||
42 | * @return string |
||
43 | */ |
||
44 | 2 | public function getBenchmarkName($methodName) |
|
48 | |||
49 | /** |
||
50 | * @return ProfilerInterface |
||
51 | */ |
||
52 | 3 | public function getProfiler() |
|
56 | |||
57 | /** |
||
58 | * @param ProfilerInterface $profiler |
||
59 | */ |
||
60 | 4 | public function setProfiler(ProfilerInterface $profiler) |
|
64 | |||
65 | /** |
||
66 | * @return mixed |
||
67 | */ |
||
68 | 4 | public function getDecorated() |
|
72 | |||
73 | /** |
||
74 | * @param mixed $decorated |
||
75 | */ |
||
76 | 4 | public function setDecorated($decorated) |
|
80 | } |