Conditions | 6 |
Paths | 32 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
25 | public function __construct($validatedData) |
||
26 | { |
||
27 | $this->firstname = array_key_exists('firstname', $validatedData) ? $validatedData['firstname'] : null; |
||
28 | $this->lastname = array_key_exists('lastname', $validatedData) ? $validatedData['lastname'] : null; |
||
29 | $this->phone = array_key_exists('phone', $validatedData) ? $validatedData['phone'] : null; |
||
30 | $this->email = array_key_exists('email', $validatedData) ? $validatedData['email'] : null; |
||
31 | $this->messageLines = array_key_exists('message', $validatedData) ? explode("\n", $validatedData['message']) : null; |
||
32 | } |
||
44 |