1 | <?php |
||
7 | class Chat |
||
8 | { |
||
9 | public const TYPE_PRIVATE = 'private'; |
||
10 | public const TYPE_GROUP = 'group'; |
||
11 | |||
12 | private $id; |
||
13 | private $title; |
||
14 | private $type; |
||
15 | |||
16 | 1 | public function __construct(string $id, string $title, string $type = self::TYPE_PRIVATE) |
|
22 | |||
23 | /** |
||
24 | * Get chat identifier. |
||
25 | * |
||
26 | * @return string |
||
27 | */ |
||
28 | 1 | public function getId(): string |
|
32 | |||
33 | /** |
||
34 | * Get title of the chat. |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | 1 | public function getTitle(): string |
|
42 | |||
43 | /** |
||
44 | * Get type of the chat. |
||
45 | * |
||
46 | * @return string |
||
47 | */ |
||
48 | 1 | public function getType(): string |
|
52 | } |
||
53 |