final class ParameterKind
Restricted visibility: declared "@visibility ZtdQuery\Adapter\Pdo". Code outside that scope must not name this declaration.

Says which of PDO's parameter kinds a value is to be bound as.

PDO::bindValue() takes the kind separately from the value, and a caller who passes parameters to execute() never names one. This reads the kind off the value itself, the way PDO would have read it had the caller named none.

Methods§

public static function fromType(string $type): int

Return PDO's binding flag for the type reported by gettype().

Parameters

$typestring

Returns

int
Test cases 1
Called from 1
Calls 5
  • class-const PDO::PARAM_NULL() line 26
  • class-const PDO::PARAM_BOOL() line 27
  • class-const PDO::PARAM_INT() line 28
  • class-const PDO::PARAM_LOB() line 29
  • class-const PDO::PARAM_STR() line 30

Test cases 10§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 9

Relations§

Static calls 1