diff --git a/Bridge/Spl/ArrayObject.php b/Bridge/Spl/ArrayObject.php index 1661d49..2115993 100644 --- a/Bridge/Spl/ArrayObject.php +++ b/Bridge/Spl/ArrayObject.php @@ -27,6 +27,17 @@ public function __construct($input = array(), $flags = 0, $iterator_class = "Arr parent::__construct($input, $flags, $iterator_class); } + /** + * @param string $key + * @param mixed $default + * + * @return mixed + */ + public function get($key, $default = null) + { + return array_key_exists($key, $this->input) ? $this->input[$key] : $default; + } + /** * @param array|\Traversable $input *