1 | <?php |
||
8 | class Facade |
||
9 | { |
||
10 | |||
11 | protected static $bind=[]; |
||
12 | |||
13 | /** |
||
14 | * 绑定类的静态代理 |
||
15 | * @static |
||
16 | * @access public |
||
17 | * @param string $name 代理名 |
||
18 | * @param string $class 实际类名 |
||
19 | * @return object |
||
20 | */ |
||
21 | 1 | public static function bind($name, $class=null) |
|
29 | |||
30 | /** |
||
31 | * 带参数实例化当前Facade类 |
||
32 | * @access public |
||
33 | * @return object |
||
34 | */ |
||
35 | public static function instance(...$args) { |
||
38 | |||
39 | /** |
||
40 | * 创建Facade实例 |
||
41 | * @static |
||
42 | * @access protected |
||
43 | * @param string $class 类名或标识 |
||
44 | * @param array $args 变量 |
||
45 | * @return object |
||
46 | */ |
||
47 | 1 | protected static function createFacade($class='', $args=[]) |
|
58 | |||
59 | 1 | protected static function getFacadeClass() |
|
61 | |||
62 | /** |
||
63 | * 指定某个Facade类进行实例化 |
||
64 | * @access public |
||
65 | * @param string $class 类名或者标识 |
||
66 | * @param array $args 变量 |
||
67 | * @return object |
||
68 | */ |
||
69 | 1 | public static function make($class, $args=[]) |
|
73 | |||
74 | // 调用实际类的方法 |
||
75 | public static function __callStatic($method, $params) |
||
79 | } |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.