mirror of
https://github.com/danog/Valinor.git
synced 2024-12-02 17:48:14 +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 ``` |
||
---|---|---|
.. | ||
construction-strategy.md | ||
handled-types.md | ||
inferring-interfaces.md | ||
type-strictness.md |