public function assess($value) { $options = $this->getOptions(); $match = preg_match($options['pattern'], $value); return $match === 1; }