original_string: protected function getColsList(string $table): array
      {
          $schema = $this->conn->getSchemaManager();
          $tableDetails = $schema->listTableDetails($table);
          // No primary ? Exception !
          if ($tableDetails->hasPrimaryKey() === false) {
              throw new NeuralyzerConfigurationException("Can't work with $table, it has no primary key.");
          }
          $primaryKey = $tableDetails->getPrimaryKey()->getColumns()[0];
  
          $cols = $schema->listTableColumns($table);
          $colsInfo = [];
          foreach ($cols as $col) {
              // If the col has to be ignored: just leave
              if ($primaryKey === $col->getName() || $this->colIgnored($table, $col->getName())) {
                  continue;
              }
  
              $colsInfo[] = [
                  'name' => $col->getName(),
                  'type' => strtolower((string) $col->getType()),
                  'len' => $col->getLength(),
              ];
          }
  
          return $colsInfo;
      }
code: protected function getColsList(string $table): array
      {
          $schema = $this->conn->getSchemaManager();
          $tableDetails = $schema->listTableDetails($table);
          // No primary ? Exception !
          if ($tableDetails->hasPrimaryKey() === false) {
              throw new NeuralyzerConfigurationException("Can't work with $table, it has no primary key.");
          }
          $primaryKey = $tableDetails->getPrimaryKey()->getColumns()[0];
  
          $cols = $schema->listTableColumns($table);
          $colsInfo = [];
          foreach ($cols as $col) {
              // If the col has to be ignored: just leave
              if ($primaryKey === $col->getName() || $this->colIgnored($table, $col->getName())) {
                  continue;
              }
  
              $colsInfo[] = [
                  'name' => $col->getName(),
                  'type' => strtolower((string) $col->getType()),
                  'len' => $col->getLength(),
              ];
          }
  
          return $colsInfo;
      }
code_tokens: protected function getColsList ( string $ table ) : array { $ schema = $ this -> conn -> getSchemaManager ( ) ; $ tableDetails = $ schema -> listTableDetails ( $ table ) ; // No primary ? Exception ! if ( $ tableDetails -> hasPrimaryKey ( ) === false ) { throw new NeuralyzerConfigurationException ( "Can't work with $table, it has no primary key." ) ; } $ primaryKey = $ tableDetails -> getPrimaryKey ( ) -> getColumns ( ) [ 0 ] ; $ cols = $ schema -> listTableColumns ( $ table ) ; $ colsInfo = [ ] ; foreach ( $ cols as $ col ) { // If the col has to be ignored: just leave if ( $ primaryKey === $ col -> getName ( ) || $ this -> colIgnored ( $ table , $ col -> getName ( ) ) ) { continue ; } $ colsInfo [ ] = [ 'name' => $ col -> getName ( ) , 'type' => strtolower ( ( string ) $ col -> getType ( ) ) , 'len' => $ col -> getLength ( ) , ] ; } return $ colsInfo ; }
docstring: Get the cols lists from a connection + table
  
  @param  string $table
  @return array
  @throws NeuralyzerConfigurationException
docstring_tokens: Get the cols lists from a connection + table