OpenTelemetry PHP

Validation
in package

FinalYes

Provides validation closures for {@see NodeDefinition}s.

Tags
see
NodeDefinition::validate()

Table of Contents

Methods

ensureAbsolutePath()  : Closure
Accepts a Unix path, a Windows drive path or a UNC path.
ensureKeyValueList()  : Closure
Accepts a `key1=value1,key2=value2` list, as read by {@see MapParser}.
ensureNumber()  : Closure
ensureRegexPattern()  : Closure
ensureString()  : Closure
stripPrefix()  : string

Methods

ensureAbsolutePath()

Accepts a Unix path, a Windows drive path or a UNC path.

public static ensureAbsolutePath() : Closure
Return values
Closure

ensureKeyValueList()

Accepts a `key1=value1,key2=value2` list, as read by {@see MapParser}.

public static ensureKeyValueList() : Closure
Return values
Closure

ensureNumber()

public static ensureNumber() : Closure
Tags
psalm-suppress

InvalidReturnType,InvalidReturnStatement,InvalidOperand

Return values
Closure

ensureRegexPattern()

public static ensureRegexPattern() : Closure
Tags
psalm-suppress

ArgumentTypeCoercion

Return values
Closure

ensureString()

public static ensureString() : Closure
Return values
Closure

stripPrefix()

private static stripPrefix(string $string, string $prefix) : string
Parameters
$string : string
$prefix : string
Return values
string
On this page

Search results