Lines
100.00%
1 / 1
Methods
100.00%
1 / 1
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| parse | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 9 | enum ProbeKind: string | |
| 10 | { | |
| 11 | case Liveness = 'liveness'; | |
| 12 | case Readiness = 'readiness'; | |
| 13 | ||
| 14 | /** @throws ConfigurationException */ | |
| 15 | public static function parse(string $raw): self | |
| 16 | { | |
| 17 | return self::tryFrom($raw) ?? throw ConfigurationException::valueInvalid($raw, 'liveness or readiness'); | |
| 18 | } | |
| 19 | } |