| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 153 | public static function totalUnRead(Users $user): int |
||
| 154 | { |
||
| 155 | return self::count([ |
||
| 156 | 'conditions' => 'is_deleted = 0 AND read = 0 AND users_id = ?0 AND companies_id = ?1 AND apps_id = ?2', |
||
| 157 | 'bind' => [ |
||
| 158 | $user->getId(), |
||
| 159 | $user->currentCompanyId(), |
||
| 160 | Di::getDefault()->getApp()->getId() |
||
| 161 | ] |
||
| 165 |