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

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

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

        if ( $this->isRegistered($name) ) {
            unset($this->cookies[$name]);
        } else {
            throw new CookieException("Cookie is not registered");
        }

        return $this;

    }
public function del($cookie) {

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

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

        if ( $this->isRegistered($name) ) {
            unset($this->cookies[$name]);
        } else {
            throw new CookieException("Cookie is not registered");
        }

        return $this;

    }
public function del ( $ cookie ) { if ( empty ( $ cookie ) ) throw new CookieException ( "Invalid cookie object or name" ) ; $ name = ( $ cookie instanceof CookieInterface ) ? $ cookie -> getName ( ) : $ cookie ; if ( $ this -> isRegistered ( $ name ) ) { unset ( $ this -> cookies [ $ name ] ) ; } else { throw new CookieException ( "Cookie is not registered" ) ; } return $ this ; }
Delete a cookie from the stack

@param CookieInterface|string $cookie

@return CookieManager
@throws CookieException
Delete a cookie from the stack