Total Complexity | 5 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class FakeDatabaseAdapter implements DatabaseAdapter { |
||
12 | protected function getFakeCharacter(): ChatCharacter { |
||
14 | } |
||
15 | |||
16 | public function getTexts(string $column, $value, int $limit): ChatMessagesCollection { |
||
17 | $texts = new ChatMessagesCollection(); |
||
18 | for($i = 1; $i <= $limit; $i++) { |
||
19 | $texts[] = new ChatMessage($i, "text", "now", $this->getFakeCharacter()); |
||
20 | } |
||
21 | return $texts; |
||
22 | } |
||
23 | |||
24 | public function getCharacters(string $column, $value): ChatCharactersCollection { |
||
28 | } |
||
29 | |||
30 | public function addMessage(string $message, string $filterColumn, int $filterValue): void { |
||
33 | ?> |