@@ 86-92 (lines=7) @@ | ||
83 | * |
|
84 | * @return bool |
|
85 | */ |
|
86 | public function has($key) |
|
87 | { |
|
88 | if (mb_strpos($key, $this->delimiter) !== false) { |
|
89 | return (!is_null($this->getChild($key))); |
|
90 | } |
|
91 | return parent::has($key); |
|
92 | } |
|
93 | ||
94 | /** |
|
95 | * @param string $key The key to access, supports delimiter based child access (e.g. `parent.child.node`) |
|
@@ 99-106 (lines=8) @@ | ||
96 | * |
|
97 | * @return mixed|null |
|
98 | */ |
|
99 | public function get($key) |
|
100 | { |
|
101 | if (mb_strpos($key, $this->delimiter) !== false) { |
|
102 | return $this->getChild($key); |
|
103 | } |
|
104 | ||
105 | return parent::get($key); |
|
106 | } |
|
107 | ||
108 | /** |
|
109 | * @param string $key The key to access, supports delimiter based child access (e.g. `parent.child.node`) |