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);
    }
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);
    }
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 ) ; }
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
Get the column name for a token .