public function get(string $name): ?ResponseCookieInterface
    {
        if (!isset($this->responseCookies[$name])) {
            return null;
        }

        return $this->responseCookies[$name];
    }
public function get(string $name): ?ResponseCookieInterface
    {
        if (!isset($this->responseCookies[$name])) {
            return null;
        }

        return $this->responseCookies[$name];
    }
public function get ( string $ name ) : ? ResponseCookieInterface { if ( ! isset ( $ this -> responseCookies [ $ name ] ) ) { return null ; } return $ this -> responseCookies [ $ name ] ; }
Returns the response cookie by name if it exists, null otherwise.

@since 1.0.0

@param string $name The name.

@return ResponseCookieInterface|null The response cookie by name if it exists, null otherwise.
Returns the response cookie by name if it exists null otherwise .