mirror of
https://github.com/danog/Valinor.git
synced 2024-11-30 04:39:05 +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 ``` |
||
---|---|---|
.. | ||
Annotation | ||
Attribute | ||
Enum | ||
Object |