QueryParamVary

Class. It implements CacheVary.

use Saij\WpAppFramework\Cache\Vary\QueryParamVary;

A parameter of the query string ($_GET); a missing parameter differs from an empty one.

Constructor

new QueryParamVary(string $name)
ParameterTypeDefaultDescription
namestringrequiredThe name of the parameter in the query string, not empty; compared exactly.

Methods

getName()

getName(): string

The name as given to the constructor.

Returns string