@@ -78,7 +78,7 @@ public function toJson(): string
7878 public function setEmail (?string $ email ): static
7979 {
8080 if ($ email && strlen ($ email ) > 50 ) {
81- throw new InvalidArgumentException ('Customer \'s email value must be less than 50 characters. ' , static ::EX_CODE );
81+ throw new InvalidArgumentException ('Customer \'s email value must be less than 50 characters. ' , self ::EX_CODE );
8282 }
8383
8484 $ this ->email = $ email ;
@@ -89,7 +89,7 @@ public function setEmail(?string $email): static
8989 public function setFullName (?string $ fullName ): static
9090 {
9191 if ($ fullName && strlen ($ fullName ) > 50 ) {
92- throw new InvalidArgumentException ('Customer \'s email value must be less than 50 characters. ' , static ::EX_CODE );
92+ throw new InvalidArgumentException ('Customer \'s email value must be less than 50 characters. ' , self ::EX_CODE );
9393 }
9494
9595 $ this ->fullName = $ fullName ;
@@ -100,7 +100,7 @@ public function setFullName(?string $fullName): static
100100 public function setPhone (?string $ phone ): static
101101 {
102102 if ($ phone && strlen ($ phone ) > 30 ) {
103- throw new InvalidArgumentException ('Customer \'s phone value must be less than 30 characters. ' , static ::EX_CODE );
103+ throw new InvalidArgumentException ('Customer \'s phone value must be less than 30 characters. ' , self ::EX_CODE );
104104 }
105105
106106 $ this ->phone = $ phone ;
@@ -111,7 +111,7 @@ public function setPhone(?string $phone): static
111111 public function setCountryCode (?string $ countryCode ): static
112112 {
113113 if ($ countryCode && strlen ($ countryCode ) !== 2 ) {
114- throw new InvalidArgumentException ('Customer \'s country code value is invalid. ' , static ::EX_CODE );
114+ throw new InvalidArgumentException ('Customer \'s country code value is invalid. ' , self ::EX_CODE );
115115 }
116116
117117 $ this ->countryCode = $ countryCode ;
0 commit comments