for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Queue\Message;
final class Message implements MessageInterface
{
/**
* @param string $handlerName A name of a handler which should handle this message
* @param mixed $data Message data, encodable by a queue adapter
* @param array $metadata Message metadata, encodable by a queue adapter
*/
public function __construct(
private string $handlerName,
private mixed $data,
private array $metadata = [],
) {
}
public function getHandlerName(): string
return $this->handlerName;
public function getData(): mixed
return $this->data;
public function getMetadata(): array
return $this->metadata;