public function setMaximumLength($maximumLength)
    {
        if ($maximumLength <= $this->minimalLength) {
            throw new Exception\InvalidArgumentException('Maximum length must be larger than minimal length.');
        }

        $this->maximumLength = $maximumLength;

        return $this;
    }
public function setMaximumLength($maximumLength)
    {
        if ($maximumLength <= $this->minimalLength) {
            throw new Exception\InvalidArgumentException('Maximum length must be larger than minimal length.');
        }

        $this->maximumLength = $maximumLength;

        return $this;
    }
public function setMaximumLength ( $ maximumLength ) { if ( $ maximumLength <= $ this -> minimalLength ) { throw new Exception \ InvalidArgumentException ( 'Maximum length must be larger than minimal length.' ) ; } $ this -> maximumLength = $ maximumLength ; return $ this ; }
Sets the MaximumLength value.

@param int $maximumLength

@return $this
@throws \Xloit\Bridge\Zend\Validator\Exception\InvalidArgumentException
Sets the MaximumLength value .