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