CreatesPotentiallyTranslatedStrings
trait CreatesPotentiallyTranslatedStrings (View source)
Properties
protected Closure | $destructor | The callback to call when the object destructs. |
Methods
pendingPotentiallyTranslatedString(string $attribute, string|null $message)
Create a pending potentially translated string.
__construct(string $message, Translator $translator, Closure $destructor)
Create a new pending potentially translated string.
void
__destruct()
Handle the object's destruction.
Details
protected PotentiallyTranslatedString
pendingPotentiallyTranslatedString(string $attribute, string|null $message)
Create a pending potentially translated string.
__construct(string $message, Translator $translator, Closure $destructor)
Create a new pending potentially translated string.
void
__destruct()
Handle the object's destruction.