src/Comodojo/Cookies/CookieManager.php
public function has($cookie) {

        if ( empty($cookie) ) throw new CookieException("Invalid cookie object or name");

        $name = ($cookie instanceof CookieInterface) ? $cookie->getName() : $cookie;

        return array_key_exists($name, $this->cookies);

    }
public function has($cookie) {

        if ( empty($cookie) ) throw new CookieException("Invalid cookie object or name");

        $name = ($cookie instanceof CookieInterface) ? $cookie->getName() : $cookie;

        return array_key_exists($name, $this->cookies);

    }
public function has ( $ cookie ) { if ( empty ( $ cookie ) ) throw new CookieException ( "Invalid cookie object or name" ) ; $ name = ( $ cookie instanceof CookieInterface ) ? $ cookie -> getName ( ) : $ cookie ; return array_key_exists ( $ name , $ this -> cookies ) ; }
Check if a cookie is into the stack

@param CookieInterface|string $cookie

@return CookieManager
@throws CookieException
Check if a cookie is into the stack