1 | <?php |
||
11 | abstract class Facade |
||
12 | { |
||
13 | /** |
||
14 | * Facaded component property accessors. |
||
15 | * |
||
16 | * @var array |
||
17 | */ |
||
18 | private static $_accessors; |
||
19 | |||
20 | /** |
||
21 | * The facaded application. |
||
22 | * |
||
23 | * @var Application |
||
24 | */ |
||
25 | private static $_app; |
||
26 | |||
27 | /** |
||
28 | * Facaded components. |
||
29 | * |
||
30 | * @var object[] |
||
31 | */ |
||
32 | private static $_components; |
||
33 | |||
34 | /** |
||
35 | * Returns a component ID being facaded. |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | public static function getFacadeComponentId() |
||
43 | |||
44 | /** |
||
45 | * Returns a component being facaded. |
||
46 | * |
||
47 | * @return mixed |
||
48 | */ |
||
49 | public static function getFacadeComponent() |
||
57 | |||
58 | /** |
||
59 | * Returns the facaded application. |
||
60 | * |
||
61 | * @return Application |
||
62 | */ |
||
63 | public static function getFacadeApplication() |
||
70 | |||
71 | /** |
||
72 | * Sets the facaded application. |
||
73 | * |
||
74 | * @param Application $value |
||
75 | * |
||
76 | * @return void |
||
77 | */ |
||
78 | public static function setFacadeApplication(Application $value) |
||
82 | |||
83 | /** |
||
84 | * Redirects static calls to component instance calls. |
||
85 | * |
||
86 | * @inheritDoc |
||
87 | */ |
||
88 | public static function __callStatic($name, $arguments) |
||
115 | |||
116 | /** |
||
117 | * @inheritDoc |
||
118 | */ |
||
119 | private function __construct() |
||
121 | |||
122 | /** |
||
123 | * @inheritDoc |
||
124 | */ |
||
125 | private function __wakeup() |
||
127 | |||
128 | /** |
||
129 | * @inheritDoc |
||
130 | */ |
||
131 | private function __clone() |
||
133 | |||
134 | } |
||
135 |