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