Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | protected function setType(string $type) : void |
||
27 | { |
||
28 | $normalized = StringUtils::trimSpacesWisely($type); |
||
29 | if (empty($normalized)) { |
||
30 | throw new InvalidArgumentException(sprintf('The value "%s" is not a valid brazilian street type.', $type)); |
||
31 | } |
||
32 | |||
33 | $this->type = StringUtils::convertCaseToTitle($normalized); |
||
34 | } |
||
55 |