thesis / message
Thesis Message
Fund package maintenance!
www.tinkoff.ru/cf/5MqZQas2dk7
0.2.0
2025-04-02 20:15 UTC
Requires
- php: ^8.3
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.8.2
README
This package provides two marker interfaces for messaging: Message
and Event
.
Installation
composer require thesis/message
Usage
use Thesis\Message\Message; use Thesis\Message\Event; final readonly class RegisterUser implements Message { public function __construct( public Uuid $userId, public string $name, ) {} } final readonly class UserRegistered implements Event { public function __construct( public Uuid $userId, ) {} } /** * @implements Message<string> */ final readonly class GetUserName implements Message { public function __construct( public Uuid $userId, ) {} }