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