original_string: private function tokenToColumn($token, $namingConvention, $class)
      {
          // Find a matching property
          $property = null;
          foreach ($class->getProperties() as $prop) {
              if (strcasecmp($token->getSource(), $prop->getName()) === 0) {
                  $property = $prop;
                  break;
              }
          }
  
          if ($property === null) {
              throw new DslSyntaxException('No matching property found for ' . $token->getSource());
          }
  
          return $namingConvention->propertyToColumnName($property);
      }
code: private function tokenToColumn($token, $namingConvention, $class)
      {
          // Find a matching property
          $property = null;
          foreach ($class->getProperties() as $prop) {
              if (strcasecmp($token->getSource(), $prop->getName()) === 0) {
                  $property = $prop;
                  break;
              }
          }
  
          if ($property === null) {
              throw new DslSyntaxException('No matching property found for ' . $token->getSource());
          }
  
          return $namingConvention->propertyToColumnName($property);
      }
code_tokens: private function tokenToColumn ( $ token , $ namingConvention , $ class ) { // Find a matching property $ property = null ; foreach ( $ class -> getProperties ( ) as $ prop ) { if ( strcasecmp ( $ token -> getSource ( ) , $ prop -> getName ( ) ) === 0 ) { $ property = $ prop ; break ; } } if ( $ property === null ) { throw new DslSyntaxException ( 'No matching property found for ' . $ token -> getSource ( ) ) ; } return $ namingConvention -> propertyToColumnName ( $ property ) ; }
docstring: Get the column name for a token.
  @param ValueToken $token
  @param NamingConvention $namingConvention
  @param ReflectionClass $class
  @return string
  @throws DslSyntaxException when no matching property could be found
docstring_tokens: Get the column name for a token .