@@ -57,6 +57,9 @@ |
||
57 | 57 | class PHPContext { |
58 | 58 | protected $data = []; |
59 | 59 | |
60 | + /** |
|
61 | + * @param string $path |
|
62 | + */ |
|
60 | 63 | public function __construct($data=[], $path=null){ |
61 | 64 | $this->data = $data; |
62 | 65 | } |
@@ -101,6 +101,11 @@ |
||
101 | 101 | $queries = [], |
102 | 102 | $last_exec_success = true; |
103 | 103 | |
104 | + /** |
|
105 | + * @param string $dsn |
|
106 | + * @param string $username |
|
107 | + * @param string $password |
|
108 | + */ |
|
104 | 109 | public function __construct($dsn, $username=null, $password=null, $options=[]){ |
105 | 110 | $this->connection = [ |
106 | 111 | 'dsn' => $dsn, |
@@ -21,6 +21,10 @@ |
||
21 | 21 | }; |
22 | 22 | } |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $serviceName |
|
26 | + * @param Closure $serviceFactory |
|
27 | + */ |
|
24 | 28 | public static function registerFactory($serviceName, $serviceFactory){ |
25 | 29 | static::$services[$serviceName] = function() use ($serviceName, $serviceFactory) { |
26 | 30 | return call_user_func_array($serviceFactory, func_get_args()); |