public function contains(GeneratedValue $value) { return is_string($value->unbox()) && (bool) preg_match("/{$this->expression}/", $value->unbox()); }