1 | <?php |
||
27 | trait CountTrait |
||
28 | { |
||
29 | /** |
||
30 | * @param int $deleted |
||
31 | * |
||
32 | * @return int |
||
33 | */ |
||
34 | 1 | public static function countUsers($deleted = User::NOT_DELETED_USERS) |
|
38 | |||
39 | /** |
||
40 | * Count number of assigned issues in a project |
||
41 | * |
||
42 | * @param int $projectId |
||
43 | * |
||
44 | * @return int |
||
45 | */ |
||
46 | 18 | public function assignedIssuesCount($projectId = 0) |
|
57 | |||
58 | /** |
||
59 | * Returns all projects with open issue count |
||
60 | * |
||
61 | * @param int $status |
||
62 | * |
||
63 | * @return $this |
||
64 | */ |
||
65 | 3 | public function projectsWithCountOpenIssues($status = Project::STATUS_OPEN) |
|
74 | } |
||
75 |