Ip\Form\Validator\MinLength::__construct PHP Method

__construct() public method

public __construct ( $data = [], $errorMessage = null )
    public function __construct($data = array(), $errorMessage = null)
    {
        $this->minLength = (int) $data;
        $this->errorMessage = $errorMessage;
        if (!is_numeric($data)) {
            throw new \Ip\Exception('minLength validator expect integer number as a first parameter');
        }
        parent::__construct($data, $errorMessage);
    }