for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace HeroesofAbenez\Chat;
/**
* ChatMessage
*
* @author Jakub Konečný
*/
class ChatMessage
{
use \Nette\SmartObject;
public function __construct(
public int $id,
public string $message,
public string $when,
public ChatCharacter $character
) {
}
* @deprecated Access the property directly
public function getId(): int
return $this->id;
protected function setId(int $id): void
$this->id = $id;
public function getMessage(): string
return $this->message;
protected function setMessage(string $message): void
$this->message = $message;
public function getWhen(): string
return $this->when;
protected function setWhen(string $when): void
$this->when = $when;
public function getCharacter(): ChatCharacter
return $this->character;
protected function setCharacter(ChatCharacter $character): void
$this->character = $character;