mirror of
https://github.com/danog/Valinor.git
synced 2024-11-26 20:24:40 +01:00
cb87925aac
The new class `\CuyZ\Valinor\Mapper\Tree\Message\MessageBuilder` can be used to easily create an instance of (error) message. This new straightforward way of creating messages leads to the depreciation of `\CuyZ\Valinor\Mapper\Tree\Message\ThrowableMessage`. ```php $message = MessageBuilder::newError('Some message / {some_parameter}.') ->withCode('some_code') ->withParameter('some_parameter', 'some_value') ->build(); ``` |
||
---|---|---|
.. | ||
Attribute | ||
Cache | ||
Definition | ||
Library | ||
Mapper | ||
Type | ||
Utility | ||
MapperBuilder.php |