1 | <?php |
||
17 | abstract class Facade |
||
18 | { |
||
19 | /** |
||
20 | * @var Api[] |
||
21 | */ |
||
22 | protected static $api = []; |
||
23 | |||
24 | /** |
||
25 | * @var Model |
||
26 | */ |
||
27 | protected $domain; |
||
28 | |||
29 | /** |
||
30 | * @param array $data |
||
31 | */ |
||
32 | public function __construct(array $data = []) |
||
38 | |||
39 | /** |
||
40 | * @param array $domain |
||
41 | * |
||
42 | * @return static |
||
43 | */ |
||
44 | public static function make(array $domain = []) |
||
48 | |||
49 | /** |
||
50 | * @param Api $api |
||
51 | */ |
||
52 | public static function setApi(Api $api) |
||
56 | |||
57 | /** |
||
58 | * @return Api |
||
59 | */ |
||
60 | private static function getApiForClass() |
||
64 | |||
65 | /** |
||
66 | * @param $method |
||
67 | */ |
||
68 | private static function checkApiMethodExists($method) |
||
76 | |||
77 | /** |
||
78 | * @param string $method |
||
79 | * @param array $args |
||
80 | * |
||
81 | * @return mixed|self |
||
82 | */ |
||
83 | public static function __callStatic($method, $args) |
||
89 | |||
90 | /** |
||
91 | * @param $method |
||
92 | * @param $args |
||
93 | * |
||
94 | * @return mixed |
||
95 | */ |
||
96 | public function __call($method, $args) |
||
106 | |||
107 | /** |
||
108 | * {@inheritdoc} |
||
109 | */ |
||
110 | public function __get($name) |
||
125 | |||
126 | /** |
||
127 | * {@inheritdoc} |
||
128 | */ |
||
129 | public function __set($name, $value) |
||
133 | } |
||
134 |