for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Translator;
/**
* Example class of Message for external usage with Translator
*/
final class Message
{
private string $message = '';
private array $parameters = [];
public function __construct(string $message, array $parameters = [])
$this->message = $message;
$this->parameters = $parameters;
}
public function getMessage(): string
return $this->message;
public function getParameters(): array
return $this->parameters;