src/Validator/StringMaskValidator.php
public function setMask($mask, $protect = null)
    {
        if (!is_null($protect)) {
            $this->setPregQuote($protect);
        }
        $this->mask = $mask;
        return $this;
    }
public function setMask($mask, $protect = null)
    {
        if (!is_null($protect)) {
            $this->setPregQuote($protect);
        }
        $this->mask = $mask;
        return $this;
    }
public function setMask ( $ mask , $ protect = null ) { if ( ! is_null ( $ protect ) ) { $ this -> setPregQuote ( $ protect ) ; } $ this -> mask = $ mask ; return $ this ; }
Set the mask to test for values
The mask can be escaped by the 'preg_quote' function setting the second argument on TRUE.

@param string $mask The mask to test in PCRE
@param bool $protect Do we have to protect the mask ?
@return object $this for method chaining
Set the mask to test for values The mask can be escaped by the preg_quote function setting the second argument on TRUE .