original_string: public static function extractProperties(\ReflectionClass $reflector, $type = \ReflectionProperty::IS_PROTECTED, $pattern = self::INJECTABLE_PATTERN)
      {
          $properties = [];
          foreach ($reflector->getProperties($type) as $property) {
              $doc = $property->getDocComment();
              if (preg_match($pattern, $doc)) {
                  $instanceType = self::extractVarType($property->getDocComment());
                  if (null !== $instanceType) {
                      $properties[$property->getName()] = $instanceType;
                  }
              }
          }
          return $properties;
      }
code: public static function extractProperties(\ReflectionClass $reflector, $type = \ReflectionProperty::IS_PROTECTED, $pattern = self::INJECTABLE_PATTERN)
      {
          $properties = [];
          foreach ($reflector->getProperties($type) as $property) {
              $doc = $property->getDocComment();
              if (preg_match($pattern, $doc)) {
                  $instanceType = self::extractVarType($property->getDocComment());
                  if (null !== $instanceType) {
                      $properties[$property->getName()] = $instanceType;
                  }
              }
          }
          return $properties;
      }
code_tokens: public static function extractProperties ( \ ReflectionClass $ reflector , $ type = \ ReflectionProperty :: IS_PROTECTED , $ pattern = self :: INJECTABLE_PATTERN ) { $ properties = [ ] ; foreach ( $ reflector -> getProperties ( $ type ) as $ property ) { $ doc = $ property -> getDocComment ( ) ; if ( preg_match ( $ pattern , $ doc ) ) { $ instanceType = self :: extractVarType ( $ property -> getDocComment ( ) ) ; if ( null !== $ instanceType ) { $ properties [ $ property -> getName ( ) ] = $ instanceType ; } } } return $ properties ; }
docstring: Method that extract the properties of a Class
  @param \ReflectionClass $reflector
  @param integer $type
  @param string $pattern
  @return array
docstring_tokens: Method that extract the properties of a Class