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