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