original_string: public function getRegex()
      {
          /** @var ApiRegex $constraint */
          if ($constraint = $this->docBlockUtility->getConstraint($this->property, ApiRegex::class)) {
              return $constraint->pattern;
          }
      }
code: public function getRegex()
      {
          /** @var ApiRegex $constraint */
          if ($constraint = $this->docBlockUtility->getConstraint($this->property, ApiRegex::class)) {
              return $constraint->pattern;
          }
      }
code_tokens: public function getRegex ( ) { /** @var ApiRegex $constraint */ if ( $ constraint = $ this -> docBlockUtility -> getConstraint ( $ this -> property , ApiRegex :: class ) ) { return $ constraint -> pattern ; } }
docstring: Get the Regex assertion pattern if it exists.
  
  @return string|null
docstring_tokens: Get the Regex assertion pattern if it exists .