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 | 5 | public function to($value) |
|
34 | |||
35 | 5 | public function get($key) |
|
39 | |||
40 | 7 | public function has($key) |
|
44 | |||
45 | public function asSingleton() |
||
49 | |||
50 | public function remove($type) |
||
54 | |||
55 | public function merge($bindings, $replace) |
||
71 | |||
72 | } |
||
73 |