Conditions | 3 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
32 | public function __construct(string $firstName = '', string $lastName = '') |
||
33 | { |
||
34 | $firstName = trim($firstName); |
||
35 | $lastName = trim($lastName); |
||
36 | |||
37 | if ($this->validateAlpha($firstName)) { |
||
38 | $this->firstName = $firstName; |
||
39 | } |
||
40 | |||
41 | if ($this->validateAlpha($lastName)) { |
||
42 | $this->lastName = $lastName; |
||
43 | } |
||
74 |