| @@ 85-92 (lines=8) @@ | ||
| 82 | * @param Context|callable $context |
|
| 83 | * @return MyCustomerDraft |
|
| 84 | */ |
|
| 85 | public static function ofEmailNameAndPassword($email, $firstName, $lastName, $password, $context = null) |
|
| 86 | { |
|
| 87 | $draft = static::of($context); |
|
| 88 | return $draft->setEmail($email) |
|
| 89 | ->setFirstName($firstName) |
|
| 90 | ->setLastName($lastName) |
|
| 91 | ->setPassword($password); |
|
| 92 | } |
|
| 93 | } |
|
| 94 | ||
| @@ 115-122 (lines=8) @@ | ||
| 112 | * @param Context|callable $context |
|
| 113 | * @return CustomerDraft |
|
| 114 | */ |
|
| 115 | public static function ofEmailNameAndPassword($email, $firstName, $lastName, $password, $context = null) |
|
| 116 | { |
|
| 117 | $draft = static::of($context); |
|
| 118 | return $draft->setEmail($email) |
|
| 119 | ->setFirstName($firstName) |
|
| 120 | ->setLastName($lastName) |
|
| 121 | ->setPassword($password); |
|
| 122 | } |
|
| 123 | } |
|
| 124 | ||