CookieVary

Class. It implements CacheVary.

use Saij\WpAppFramework\Cache\Vary\CookieVary;

A cookie of the request; a missing cookie differs from an empty one.

Constructor

new CookieVary(string $name)
ParameterTypeDefaultDescription
namestringrequiredThe name of the cookie, not empty; compared exactly.

Methods

getName()

getName(): string

The name as given to the constructor.

Returns string