*/
final class LanguageImported implements IEvent
{
- public readonly Language $language;
-
- public function __construct(Language $language)
- {
- $this->language = $language;
+ public function __construct(
+ public readonly Language $language
+ ) {
}
}
*/
final class PhraseChanged implements IEvent
{
- public readonly Language $language;
- public readonly string $name;
-
- public function __construct(Language $language, string $name)
- {
- $this->language = $language;
- $this->name = $name;
+ public function __construct(
+ public readonly Language $language,
+ public readonly string $name
+ ) {
}
}