src/Http/Cookie/Cookies.php
public function offsetGet($name)
    {
        $data = [];
        if (!isset($this->_hashes[$name])) {
            throw new RuntimeException("Unexisting Set-Cookie `'{$name}'`.");
        }
        foreach ($this->_hashes[$name] as $key => $hash) {
            $data[] = $this->_data[$hash];
        }
        return $data;
    }
public function offsetGet($name)
    {
        $data = [];
        if (!isset($this->_hashes[$name])) {
            throw new RuntimeException("Unexisting Set-Cookie `'{$name}'`.");
        }
        foreach ($this->_hashes[$name] as $key => $hash) {
            $data[] = $this->_data[$hash];
        }
        return $data;
    }
public function offsetGet ( $ name ) { $ data = [ ] ; if ( ! isset ( $ this -> _hashes [ $ name ] ) ) { throw new RuntimeException ( "Unexisting Set-Cookie `'{$name}'`." ) ; } foreach ( $ this -> _hashes [ $ name ] as $ key => $ hash ) { $ data [ ] = $ this -> _data [ $ hash ] ; } return $ data ; }
Gets a set-cookie.

@param  string $name  The cookie name.
@param  object $value The cookie.
@return object        The setted cookie.
Gets a set - cookie .