Factory::forUnionType()
For properties with union types, the first named type is used to create the factory or pass a built-in value
Factory::forUnionType(ReflectionUnionType $type, $value)
Parameters
Name | Type | Default |
---|---|---|
$type * | ReflectionUnionType |
– |
$value * | mixed |
– |