1 | <?php |
||
8 | class Bindings |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * An array of all the bindings. |
||
13 | * @var array |
||
14 | */ |
||
15 | private $bindings = []; |
||
16 | |||
17 | /** |
||
18 | * An active key that would be altered with subsequent calls to the bindings object. |
||
19 | * @var string |
||
20 | */ |
||
21 | private $activeKey; |
||
22 | |||
23 | 5 | public function setActiveKey($activeKey) |
|
28 | |||
29 | public function call($method, $parameters = []) |
||
33 | |||
34 | public function setProperty($property, $binding) |
||
38 | |||
39 | 5 | public function to($value) |
|
44 | |||
45 | 5 | public function get($key) |
|
49 | |||
50 | 7 | public function has($key) |
|
54 | |||
55 | 1 | public function asSingleton() |
|
59 | |||
60 | public function merge($bindings, $replace = true) |
||
76 | |||
77 | } |
||
78 |