Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | 1 | class ChatCharacter { |
|
14 | 1 | use \Nette\SmartObject; |
|
15 | |||
16 | /** @var int|string */ |
||
17 | protected $id; |
||
18 | /** @var string */ |
||
19 | protected $name; |
||
20 | |||
21 | /** |
||
22 | * @param int|string $id |
||
23 | */ |
||
24 | public function __construct($id, string $name) { |
||
27 | 1 | } |
|
28 | |||
29 | /** |
||
30 | * @return int|string |
||
31 | */ |
||
32 | public function getId() { |
||
33 | 1 | return $this->id; |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getName(): string { |
||
41 | } |
||
42 | } |
||
43 | ?> |