src/Base/AbstractRequest.php
public function getCookieValue(string $name): ?string
    {
        $cookie = $this->cookies->get($name);

        return $cookie !== null ? $cookie->getValue() : null;
    }
public function getCookieValue(string $name): ?string
    {
        $cookie = $this->cookies->get($name);

        return $cookie !== null ? $cookie->getValue() : null;
    }
public function getCookieValue ( string $ name ) : ? string { $ cookie = $ this -> cookies -> get ( $ name ) ; return $ cookie !== null ? $ cookie -> getValue ( ) : null ; }
Returns the cookie value by cookie name if it exists, null otherwise.

@since 1.1.0

@param string $name The cookie name.

@return string|null The cookie value by cookie name if it exists, false otherwise.
Returns the cookie value by cookie name if it exists null otherwise .