| 1 | <?php |
||
| 16 | final class SummaryRisk implements ApiResponse |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var int |
||
| 20 | */ |
||
| 21 | private $high = 0; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var int |
||
| 25 | */ |
||
| 26 | private $low = 0; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var int |
||
| 30 | */ |
||
| 31 | private $medium = 0; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var int |
||
| 35 | */ |
||
| 36 | private $unknown = 0; |
||
| 37 | |||
| 38 | 8 | public static function create(array $data): self |
|
| 49 | |||
| 50 | 8 | private function __construct() |
|
| 53 | |||
| 54 | 1 | public function getHigh(): int |
|
| 58 | |||
| 59 | 1 | public function getLow(): int |
|
| 63 | |||
| 64 | 1 | public function getMedium(): int |
|
| 68 | |||
| 69 | 1 | public function getUnknown(): int |
|
| 73 | } |
||
| 74 |