| Total Complexity | 9 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Coverage | 21.43% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | 1 | class ChatMessage { |
|
| 12 | use \Nette\SmartObject; |
||
| 13 | |||
| 14 | 1 | public function __construct(public int $id, public string $message, public string $when, public ChatCharacter $character) { |
|
|
|
|||
| 15 | 1 | } |
|
| 16 | |||
| 17 | /** |
||
| 18 | * @deprecated Access the property directly |
||
| 19 | */ |
||
| 20 | public function getId(): int { |
||
| 21 | return $this->id; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @deprecated Access the property directly |
||
| 26 | */ |
||
| 27 | protected function setId(int $id): void { |
||
| 28 | $this->id = $id; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @deprecated Access the property directly |
||
| 33 | */ |
||
| 34 | public function getMessage(): string { |
||
| 35 | return $this->message; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @deprecated Access the property directly |
||
| 40 | */ |
||
| 41 | protected function setMessage(string $message): void { |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @deprecated Access the property directly |
||
| 47 | */ |
||
| 48 | public function getWhen(): string { |
||
| 49 | return $this->when; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @deprecated Access the property directly |
||
| 54 | */ |
||
| 55 | protected function setWhen(string $when): void { |
||
| 56 | $this->when = $when; |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @deprecated Access the property directly |
||
| 61 | */ |
||
| 62 | public function getCharacter(): ChatCharacter { |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @deprecated Access the property directly |
||
| 68 | */ |
||
| 69 | protected function setCharacter(ChatCharacter $character): void { |
||
| 71 | } |
||
| 72 | } |
||
| 73 | ?> |