1 | <?php |
||
5 | class Registry extends \ArrayObject |
||
6 | { |
||
7 | /** |
||
8 | * Return true if the input is a registered Salt |
||
9 | * |
||
10 | * @param string $name in the form "type.name" |
||
11 | * |
||
12 | * @return bool |
||
13 | */ |
||
14 | public function exists($name) |
||
18 | |||
19 | /** |
||
20 | * Return the bitmask integer of a Salt |
||
21 | * |
||
22 | * @param string $name in the form "type.name" |
||
23 | * |
||
24 | * @return bool|int |
||
25 | */ |
||
26 | public function bit($name) |
||
30 | |||
31 | /** |
||
32 | * Register a Salt and return its bitmask integer |
||
33 | * |
||
34 | * @param $name |
||
35 | * |
||
36 | * @return number |
||
37 | */ |
||
38 | public function append($name) |
||
50 | } |
||
51 |