public static function retrieve($name) {

        try {

            $class = get_called_class();

            $cookie = new $class($name);

            return $cookie->load();

        } catch (CookieException $ce) {

            throw $ce;

        }

    }
public static function retrieve($name) {

        try {

            $class = get_called_class();

            $cookie = new $class($name);

            return $cookie->load();

        } catch (CookieException $ce) {

            throw $ce;

        }

    }
public static function retrieve ( $ name ) { try { $ class = get_called_class ( ) ; $ cookie = new $ class ( $ name ) ; return $ cookie -> load ( ) ; } catch ( CookieException $ ce ) { throw $ ce ; } }
Static method to quickly get a cookie

@param string $name
The cookie name

@return self
@throws CookieException
Static method to quickly get a cookie