Example #1
0
 /**
  * Base constructor.
  * @param string $objectName
  * @param int $minLength
  * @param int $maxLength
  * @param string $message
  */
 public function __construct($objectName, $minLength, $maxLength, $message = '')
 {
     $this->setMinLength($minLength);
     $this->setMaxLength($maxLength);
     parent::__construct($objectName, $message);
 }
Example #2
0
 /**
  * Base constructor.
  * @param string $objectName
  * @param int $length
  * @param string $message
  */
 public function __construct($objectName, $length, $message = '')
 {
     $this->setLength($length);
     parent::__construct($objectName, $message);
 }