src/Bcol/Component/Type/Pattern.php
public function match($subject, array &$matched = null, $flags = 0, $offset = 0)
    {
        $subject = new String($subject);

        return preg_match($this->getValue(), $subject->getValue(), $matched, $flags, $offset);
    }
public function match($subject, array &$matched = null, $flags = 0, $offset = 0)
    {
        $subject = new String($subject);

        return preg_match($this->getValue(), $subject->getValue(), $matched, $flags, $offset);
    }
@param string|String $subject
@param array         $matched = null
@param int           $flags   = 0
@param int           $offset  = 0

@return int