| @@ 163-171 (lines=9) @@ | ||
| 160 | * |
|
| 161 | * @return int |
|
| 162 | */ |
|
| 163 | public function getNbAwaitingPatchs(): int { |
|
| 164 | $cnt = 0; |
|
| 165 | foreach ($this->patchs as $patch) { |
|
| 166 | if ($patch->getStatus() === PatchInterface::STATUS_AWAITING) { |
|
| 167 | $cnt++; |
|
| 168 | } |
|
| 169 | } |
|
| 170 | return $cnt; |
|
| 171 | } |
|
| 172 | ||
| 173 | /** |
|
| 174 | * Returns the number of patches that have errors. |
|
| @@ 178-186 (lines=9) @@ | ||
| 175 | * |
|
| 176 | * @return int |
|
| 177 | */ |
|
| 178 | public function getNbPatchsInError(): int { |
|
| 179 | $cnt = 0; |
|
| 180 | foreach ($this->patchs as $patch) { |
|
| 181 | if ($patch->getStatus() === PatchInterface::STATUS_ERROR) { |
|
| 182 | $cnt++; |
|
| 183 | } |
|
| 184 | } |
|
| 185 | return $cnt; |
|
| 186 | } |
|
| 187 | ||
| 188 | /** |
|
| 189 | * (non-PHPdoc) |
|