ReferenceConfigurator
extends AbstractConfigurator
in package
Tags
Table of Contents
- FACTORY = 'unknown'
- $valuePreProcessor : callable
- __call() : mixed
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __toString() : string
- __wakeup() : mixed
- ignoreOnInvalid() : $this
- ignoreOnUninitialized() : $this
- nullOnInvalid() : $this
- processValue() : mixed
- Checks that a value is valid, optionally replacing Definition and Reference configurators by their configure value.
Constants
FACTORY
public
mixed
FACTORY
= 'unknown'
Properties
$valuePreProcessor
public
static callable
$valuePreProcessor
(mixed, bool)|null
Methods
__call()
public
__call(string $method, array<string|int, mixed> $args) : mixed
Parameters
- $method : string
- $args : array<string|int, mixed>
Return values
mixed —__construct()
public
__construct(string $id) : mixed
Parameters
- $id : string
Return values
mixed —__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed> —__toString()
public
__toString() : string
Return values
string —__wakeup()
public
__wakeup() : mixed
Return values
mixed —ignoreOnInvalid()
public
final ignoreOnInvalid() : $this
Return values
$this —ignoreOnUninitialized()
public
final ignoreOnUninitialized() : $this
Return values
$this —nullOnInvalid()
public
final nullOnInvalid() : $this
Return values
$this —processValue()
Checks that a value is valid, optionally replacing Definition and Reference configurators by their configure value.
public
static processValue(mixed $value[, bool $allowServices = false ]) : mixed
Parameters
- $value : mixed
- $allowServices : bool = false
-
whether Definition and Reference are allowed; by default, only scalars and arrays are
Return values
mixed —the value, optionally cast to a Definition/Reference