| Conditions | 2 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public static function fromValidTypes(array $types, $value): self |
||
| 14 | { |
||
| 15 | return new self(\sprintf( |
||
| 16 | 'Provided email is not valid. Expected one of ["%s"], but "%s" was provided', |
||
| 17 | \implode('", "', $types), |
||
| 18 | \is_object($value) ? \get_class($value) : \gettype($value) |
||
| 19 | )); |
||
| 20 | } |
||
| 21 | } |
||
| 22 |