Subversion Repositories oidplus

Rev

Rev 1086 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1086 Rev 1116
Line 28... Line 28...
28
 
28
 
29
        protected $content = array();
29
        protected $content = array();
30
 
30
 
31
        // Override some abstract functions
31
        // Override some abstract functions
32
 
32
 
-
 
33
        /**
-
 
34
         * @param string $name
-
 
35
         * @param mixed|null $default
-
 
36
         * @return mixed|null
-
 
37
         */
33
        public function getValue($name, $default = NULL) {
38
        public function getValue(string $name, $default = NULL) {
34
                return isset($this->content[$name]) ? $this->content[$name] : $default;
39
                return isset($this->content[$name]) ? $this->content[$name] : $default;
35
        }
40
        }
36
 
41
 
-
 
42
        /**
-
 
43
         * @param string $name
-
 
44
         * @param mixed $value
-
 
45
         * @return void
-
 
46
         */
37
        public function setValue($name, $value) {
47
        public function setValue(string $name, $value) {
38
                $this->content[$name] = $value;
48
                $this->content[$name] = $value;
39
        }
49
        }
40
 
50
 
-
 
51
        /**
-
 
52
         * @param string $name
-
 
53
         * @return bool
-
 
54
         */
41
        public function exists($name) {
55
        public function exists(string $name): bool {
42
                return isset($this->content[$name]);
56
                return isset($this->content[$name]);
43
        }
57
        }
44
 
58
 
-
 
59
        /**
-
 
60
         * @param string $name
-
 
61
         * @return void
-
 
62
         */
45
        public function delete($name) {
63
        public function delete(string $name) {
46
                unset($this->content[$name]);
64
                unset($this->content[$name]);
47
        }
65
        }
48
 
66
 
49
}
67
}