| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class DiscussPostRepository |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Find the previous post related to the given post. |
||
| 17 | * |
||
| 18 | * @param DiscussPost $post |
||
| 19 | * @param bool $withSolved |
||
| 20 | * |
||
| 21 | * @return DiscussPost|null |
||
| 22 | */ |
||
| 23 | public static function findPreviousPost(DiscussPost $post, bool $withSolved = false): ?DiscussPost |
||
| 37 |