public function all()
    {
        $this->flushExpiredCookies();

        $flattenedCookies = array();
        foreach ($this->cookieJar as $path) {
            foreach ($path as $cookies) {
                foreach ($cookies as $cookie) {
                    $flattenedCookies[] = $cookie;
                }
            }
        }

        return $flattenedCookies;
    }
public function all()
    {
        $this->flushExpiredCookies();

        $flattenedCookies = array();
        foreach ($this->cookieJar as $path) {
            foreach ($path as $cookies) {
                foreach ($cookies as $cookie) {
                    $flattenedCookies[] = $cookie;
                }
            }
        }

        return $flattenedCookies;
    }
public function all ( ) { $ this -> flushExpiredCookies ( ) ; $ flattenedCookies = array ( ) ; foreach ( $ this -> cookieJar as $ path ) { foreach ( $ path as $ cookies ) { foreach ( $ cookies as $ cookie ) { $ flattenedCookies [ ] = $ cookie ; } } } return $ flattenedCookies ; }
Returns not yet expired cookies.

@return Cookie[] An array of cookies
Returns not yet expired cookies .