public function get($key)
    {
        $key = $this->getScalarKey($key);
        if (isset($this->list[$key])) {
            return $this->list[$key]->value;
        }

        throw new \OutOfBoundsException('The key ' . $key . ' is not existed.');
    }
public function get($key)
    {
        $key = $this->getScalarKey($key);
        if (isset($this->list[$key])) {
            return $this->list[$key]->value;
        }

        throw new \OutOfBoundsException('The key ' . $key . ' is not existed.');
    }
public function get ( $ key ) { $ key = $ this -> getScalarKey ( $ key ) ; if ( isset ( $ this -> list [ $ key ] ) ) { return $ this -> list [ $ key ] -> value ; } throw new \ OutOfBoundsException ( 'The key ' . $ key . ' is not existed.' ) ; }
Get item from map

@param mixed $key
@return mixed

@throws \OutOfBoundsException when key is not exists
Get item from map