public function get($key, $default = null)
    {
        if (\array_key_exists($key, $this->data)) {
            return $this->data[$key];
        }

        if (null === $this->parent) {
            return $default;
        }

        return $this->parent->get($key, $default);
    }
public function get($key, $default = null)
    {
        if (\array_key_exists($key, $this->data)) {
            return $this->data[$key];
        }

        if (null === $this->parent) {
            return $default;
        }

        return $this->parent->get($key, $default);
    }
public function get ( $ key , $ default = null ) { if ( \ array_key_exists ( $ key , $ this -> data ) ) { return $ this -> data [ $ key ] ; } if ( null === $ this -> parent ) { return $ default ; } return $ this -> parent -> get ( $ key , $ default ) ; }
Returns data visible from current scope.

@param string $key
@param mixed  $default

@return mixed
Returns data visible from current scope .