title)); Assert::maxLength($this->title, 75); Assert::true( $this->picture !== null || ($this->text !== null && trim($this->text) !== ''), 'A slide must have either a picture or text.' ); if ($this->pictureAlt !== null) { Assert::maxLength($this->pictureAlt, 75); } if ($this->pictureTitle !== null) { Assert::maxLength($this->pictureTitle, 75); } if ($this->link !== null) { Assert::maxLength($this->link, 255); } if ($this->linkLabel !== null) { Assert::maxLength($this->linkLabel, 255); } } }