AssertApiKeyTrait
Trait AssertApiKeyTrait
Table of Contents
Properties
- $apiKeyMaxLength : int
- Maximum length of API key
- $apiKeyMinLength : int
- Minimum length of API key
Methods
- assertApiKey() : void
- Check value is a syntactically valid API key
Properties
$apiKeyMaxLength
Maximum length of API key
private
static int
$apiKeyMaxLength
= 45
$apiKeyMinLength
Minimum length of API key
private
static int
$apiKeyMinLength
= 20
Methods
assertApiKey()
Check value is a syntactically valid API key
public
static assertApiKey(string $value[, string $message = '' ]) : void
Parameters
- $value : string
- $message : string = ''