Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | trait ChatsAwareTrait |
||
13 | { |
||
14 | /** |
||
15 | * @Serializer\Type("array<Zored\Telegram\Entity\Chat>") |
||
16 | * |
||
17 | * @var Chat[] |
||
18 | */ |
||
19 | private $chats = []; |
||
20 | |||
21 | /** |
||
22 | * @return Chat[] |
||
23 | */ |
||
24 | public function getChats(): array |
||
27 | } |
||
28 | |||
29 | public function findChatByTitle(string $title): ?Chat |
||
37 | } |
||
38 | |||
39 | public function setChats(array $chats): self |
||
40 | { |
||
41 | $this->chats = $chats; |
||
42 | |||
43 | return $this; |
||
44 | } |
||
45 | |||
46 | private function getChatMatcher(): StringMatcherInterface |
||
49 | } |
||
50 | } |
||
51 |