Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
81 | public static function fromEmailAndFirstName(string $email, string $firstName, string $lastName = null): RegistrantSchema |
||
82 | { |
||
83 | $instance = new static(); |
||
84 | $instance->first_name = $firstName; |
||
85 | $instance->email = $email; |
||
86 | if (null !== $lastName) { |
||
87 | $instance->last_name = $lastName; |
||
88 | } |
||
89 | |||
90 | return $instance; |
||
91 | } |
||
104 |