OpenTelemetry PHP

AttributeValidator
in package
implements AttributeValidatorInterface

Table of Contents

Interfaces

AttributeValidatorInterface

Constants

NUMERICS  = ['double', 'integer']
PRIMITIVES  = ['string', 'integer', 'double', 'boolean']

Methods

getInvalidMessage()  : string
validate()  : bool
Validate whether a value is a primitive, or a homogeneous array of primitives (treating int/double as equivalent).
validateArray()  : bool

Constants

Methods

validateArray()

private validateArray(array<string|int, mixed> $value) : bool
Parameters
$value : array<string|int, mixed>
Return values
bool

        
On this page

Search results