public static function column(array $tokens, MetaData $metaData) {
        $table = Table::create($tokens);
        $meta  = array_filter($metaData->get(), function($meta) use ($table) {
            return $meta->getTableName() === $table;
        });

        $idColumns = !empty($meta) ? end($meta)->getIdentifierColumnNames() : [];

        return !empty($idColumns) ? end($idColumns) : 'id';
    }
public static function column(array $tokens, MetaData $metaData) {
        $table = Table::create($tokens);
        $meta  = array_filter($metaData->get(), function($meta) use ($table) {
            return $meta->getTableName() === $table;
        });

        $idColumns = !empty($meta) ? end($meta)->getIdentifierColumnNames() : [];

        return !empty($idColumns) ? end($idColumns) : 'id';
    }
public static function column ( array $ tokens , MetaData $ metaData ) { $ table = Table :: create ( $ tokens ) ; $ meta = array_filter ( $ metaData -> get ( ) , function ( $ meta ) use ( $ table ) { return $ meta -> getTableName ( ) === $ table ; } ) ; $ idColumns = ! empty ( $ meta ) ? end ( $ meta ) -> getIdentifierColumnNames ( ) : [ ] ; return ! empty ( $ idColumns ) ? end ( $ idColumns ) : 'id' ; }
returns the column of the id

@param  array    $tokens
@param  MetaData $metaData
@return string

@SuppressWarnings("PHPMD.StaticAccess")
returns the column of the id