mirror of
https://github.com/danog/Valinor.git
synced 2024-11-26 20:24:40 +01:00
1244c2d68f
This notation is mainly useful when several cases in constants of a class share a common prefix. ```php final class SomeClassWithConstants { public const FOO = 1337; public const BAR = 'bar'; public const BAZ = 'baz'; } $mapper = (new MapperBuilder())->mapper(); $mapper->map('SomeClassWithConstants::BA*', 1337); // error $mapper->map('SomeClassWithConstants::BA*', 'bar'); // ok $mapper->map('SomeClassWithConstants::BA*', 'baz'); // ok ``` |
||
---|---|---|
.. | ||
InterfaceWithDifferentNamespaces | ||
AbstractObject.php | ||
ObjectWithAttributes.php | ||
ObjectWithConstants.php | ||
ObjectWithConstantsIncludingEnums.php | ||
ObjectWithNestedAttributes.php | ||
ObjectWithParameterDefaultObjectValue.php | ||
ObjectWithPropertyPromotion.php | ||
ObjectWithPropertyWithNativeIntersectionType.php | ||
ObjectWithPropertyWithNativeUnionType.php | ||
StringableObject.php |