| @@ 147-155 (lines=9) @@ | ||
| 144 | * |
|
| 145 | * @return int |
|
| 146 | */ |
|
| 147 | public function getNbAwaitingPatchs(): int { |
|
| 148 | $cnt = 0; |
|
| 149 | foreach ($this->patchs as $patch) { |
|
| 150 | if ($patch->getStatus() === PatchInterface::STATUS_AWAITING) { |
|
| 151 | $cnt++; |
|
| 152 | } |
|
| 153 | } |
|
| 154 | return $cnt; |
|
| 155 | } |
|
| 156 | ||
| 157 | /** |
|
| 158 | * Returns the number of patches that have errors. |
|
| @@ 162-170 (lines=9) @@ | ||
| 159 | * |
|
| 160 | * @return int |
|
| 161 | */ |
|
| 162 | public function getNbPatchsInError(): int { |
|
| 163 | $cnt = 0; |
|
| 164 | foreach ($this->patchs as $patch) { |
|
| 165 | if ($patch->getStatus() === PatchInterface::STATUS_ERROR) { |
|
| 166 | $cnt++; |
|
| 167 | } |
|
| 168 | } |
|
| 169 | return $cnt; |
|
| 170 | } |
|
| 171 | ||
| 172 | /** |
|
| 173 | * (non-PHPdoc) |
|