Skip to content

Commit

Permalink
Merge pull request #6 from plentymarkets/add/changes
Browse files Browse the repository at this point in the history
Add/changes
  • Loading branch information
Joshua Schaak authored Aug 23, 2022
2 parents 6b8df5a + 518085e commit 8709d88
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ public function listInvalidProperties() : array
$invalidProperties[] = "'name' can't be null";
}

if ((\mb_strlen($this->container['name']) > 30)) {
$invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 30.";
}
// if ((\mb_strlen($this->container['name']) > 30)) {
// $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 30.";
// }

if ($this->container['address_line1'] === null) {
$invalidProperties[] = "'address_line1' can't be null";
Expand Down Expand Up @@ -345,9 +345,9 @@ public function getName() : string
*/
public function setName(string $name) : self
{
if ((\mb_strlen($name) > 30)) {
throw new \InvalidArgumentException('invalid length for $name when calling Address., must be smaller than or equal to 30.');
}
// if ((\mb_strlen($name) > 30)) {
// throw new \InvalidArgumentException('invalid length for $name when calling Address., must be smaller than or equal to 30.');
// }

$this->container['name'] = $name;

Expand Down

0 comments on commit 8709d88

Please sign in to comment.