Explore Server Side Testing SDK for PHP

ReferrerTypeContextParamValidator extends AbstractContextParamValidator

Table of Contents

Properties

$errorMessage  : string
$maxLength  : int
$validReferrerTypes  : array<string|int, mixed>

Methods

getErrorMessage()  : string
Get the error message
validate()  : bool
Validate the referrer type value
validateMaxLength()  : bool
Validate that the value does not exceed the maximum length
validateNotEmpty()  : bool
Validate that the value is not empty

Properties

$validReferrerTypes

private array<string|int, mixed> $validReferrerTypes = array('direct', 'organic', 'referral', 'paid', 'social', 'email', 'other')

Methods

validateMaxLength()

Validate that the value does not exceed the maximum length

protected validateMaxLength(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

validateNotEmpty()

Validate that the value is not empty

protected validateNotEmpty(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

        
On this page

Search results