| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function __construct(string $firstname, string $lastname, string $postalCode, array $characteristics = []) |
||
| 19 | { |
||
| 20 | $this->firstname = $firstname; |
||
| 21 | $this->lastname = $lastname; |
||
| 22 | $this->postalCode = $postalCode; |
||
| 23 | $this->department = (new PostalCode($postalCode))->department(); |
||
| 24 | $this->characteristics = $characteristics; |
||
| 25 | foreach($this->characteristics as $characteristic){ |
||
| 26 | $this->characteristicsByType[$characteristic->type()][] = $characteristic; |
||
| 27 | } |
||
| 42 |