ApiVersionManager
in package
This class is used to take track of the Api Version used during a request.
This class is registered as a singleton in the Athomos\System\ServiceProvider
Table of Contents
- $currentApiVersion : string
- __construct() : mixed
- checkCurrentAgainstArray() : bool
- setCurrentApiVersion() : ApiVersionManager
Properties
$currentApiVersion
public
string
$currentApiVersion
= "latest"
Methods
__construct()
public
__construct() : mixed
Return values
mixed —checkCurrentAgainstArray()
public
checkCurrentAgainstArray(array<string|int, mixed> $versions) : bool
Parameters
- $versions : array<string|int, mixed>
Return values
bool —setCurrentApiVersion()
public
setCurrentApiVersion(mixed $apiVersion) : ApiVersionManager
Parameters
- $apiVersion : mixed