mirror of
https://github.com/danog/Valinor.git
synced 2024-12-02 09:37:46 +01:00
69ebd19ee8
This notation can be used when several cases in an enum share a common prefix. ```php enum SomeEnum: string { case FOO = 'foo'; case BAR = 'bar'; case BAZ = 'baz'; } $mapper = (new MapperBuilder())->mapper(); $mapper->map('SomeEnum::BA*', 'foo'); // error $mapper->map('SomeEnum::BA*', 'bar'); // ok $mapper->map('SomeEnum::BA*', 'baz'); // ok ``` |
||
---|---|---|
.. | ||
img | ||
mapping | ||
other | ||
stylesheets | ||
changelog.md | ||
credits.md | ||
getting-started.md | ||
index.md | ||
message-customization.md | ||
robots.txt | ||
source.md | ||
validation.md |