1 | <?php |
||
19 | class BaseDictionary extends BaseCollection implements Dictionary { |
||
20 | |||
21 | public function has( $key ) { |
||
24 | |||
25 | public function get( $key, $default = null ) { |
||
28 | |||
29 | public function set( $key, $item ) { |
||
30 | |||
31 | $current = $this->get($key); |
||
32 | |||
33 | $this->items[$key] = $item; |
||
34 | |||
35 | return $current; |
||
36 | |||
37 | } |
||
38 | |||
39 | public function remove( $key ) { |
||
40 | $current = $this->get($key); |
||
41 | unset($this->items[$key]); |
||
42 | return $current; |
||
43 | } |
||
44 | |||
45 | public function keys() { |
||
48 | |||
49 | |||
50 | } |
||
51 | |||
52 | // EOF |