Messages handling voor spel 1
This commit is contained in:
22
src/Tech/Message/ProcessTaskMessage.php
Normal file
22
src/Tech/Message/ProcessTaskMessage.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Tech\Message;
|
||||
|
||||
class ProcessTaskMessage
|
||||
{
|
||||
public function __construct(
|
||||
private string $taskName,
|
||||
private array $payload = [],
|
||||
) {
|
||||
}
|
||||
|
||||
public function getTaskName(): string
|
||||
{
|
||||
return $this->taskName;
|
||||
}
|
||||
|
||||
public function getPayload(): array
|
||||
{
|
||||
return $this->payload;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user