| @@ 98-105 (lines=8) @@ | ||
| 95 | * @param Context|callable $context |
|
| 96 | * @return CustomerDraft |
|
| 97 | */ |
|
| 98 | public static function ofEmailNameAndPassword($email, $firstName, $lastName, $password, $context = null) |
|
| 99 | { |
|
| 100 | $draft = static::of($context); |
|
| 101 | return $draft->setEmail($email) |
|
| 102 | ->setFirstName($firstName) |
|
| 103 | ->setLastName($lastName) |
|
| 104 | ->setPassword($password); |
|
| 105 | } |
|
| 106 | } |
|
| 107 | ||
| @@ 84-91 (lines=8) @@ | ||
| 81 | * @param Context|callable $context |
|
| 82 | * @return CustomerDraft |
|
| 83 | */ |
|
| 84 | public static function ofEmailNameAndPassword($email, $firstName, $lastName, $password, $context = null) |
|
| 85 | { |
|
| 86 | $draft = static::of($context); |
|
| 87 | return $draft->setEmail($email) |
|
| 88 | ->setFirstName($firstName) |
|
| 89 | ->setLastName($lastName) |
|
| 90 | ->setPassword($password); |
|
| 91 | } |
|
| 92 | } |
|
| 93 | ||