firstname)); Assert::maxLength($this->firstname, 255); Assert::stringNotEmpty(trim($this->lastname)); Assert::maxLength($this->lastname, 255); Assert::stringNotEmpty(trim($this->password)); Assert::stringNotEmpty(trim($this->postcode)); Assert::maxLength($this->postcode, 20); Assert::stringNotEmpty(trim($this->city)); Assert::maxLength($this->city, 255); if ($this->address !== null) { Assert::maxLength($this->address, 255); } } }