original_string: protected function addDefaultListField()
      {
          if (!in_array(Api::API_LIST_NAME_FIELD, array_values($this->extraColumns))) {
              /** @var TableMap $tableMap */
              $tableMap = $this->getTableMap();
              /** @var ColumnMap $column */
              $column = null;
              if ($tableMap->hasColumn('NAME')) {
                  $column = $tableMap->getColumn('NAME');
              } elseif ($tableMap->hasColumn('TITLE')) {
                  $column = $tableMap->getColumn('TITLE');
              } elseif ($tableMap->hasColumn('LABEL')) {
                  $column = $tableMap->getColumn('LABEL');
              }
              if (null !== $column) {
                  $this->extraColumns[$column->getFullyQualifiedName()] = Api::API_LIST_NAME_FIELD;
              } else {
                  $this->addClassListName($tableMap);
              }
          }
      }
code: protected function addDefaultListField()
      {
          if (!in_array(Api::API_LIST_NAME_FIELD, array_values($this->extraColumns))) {
              /** @var TableMap $tableMap */
              $tableMap = $this->getTableMap();
              /** @var ColumnMap $column */
              $column = null;
              if ($tableMap->hasColumn('NAME')) {
                  $column = $tableMap->getColumn('NAME');
              } elseif ($tableMap->hasColumn('TITLE')) {
                  $column = $tableMap->getColumn('TITLE');
              } elseif ($tableMap->hasColumn('LABEL')) {
                  $column = $tableMap->getColumn('LABEL');
              }
              if (null !== $column) {
                  $this->extraColumns[$column->getFullyQualifiedName()] = Api::API_LIST_NAME_FIELD;
              } else {
                  $this->addClassListName($tableMap);
              }
          }
      }
code_tokens: protected function addDefaultListField ( ) { if ( ! in_array ( Api :: API_LIST_NAME_FIELD , array_values ( $ this -> extraColumns ) ) ) { /** @var TableMap $tableMap */ $ tableMap = $ this -> getTableMap ( ) ; /** @var ColumnMap $column */ $ column = null ; if ( $ tableMap -> hasColumn ( 'NAME' ) ) { $ column = $ tableMap -> getColumn ( 'NAME' ) ; } elseif ( $ tableMap -> hasColumn ( 'TITLE' ) ) { $ column = $ tableMap -> getColumn ( 'TITLE' ) ; } elseif ( $ tableMap -> hasColumn ( 'LABEL' ) ) { $ column = $ tableMap -> getColumn ( 'LABEL' ) ; } if ( null !== $ column ) { $ this -> extraColumns [ $ column -> getFullyQualifiedName ( ) ] = Api :: API_LIST_NAME_FIELD ; } else { $ this -> addClassListName ( $ tableMap ) ; } } }
docstring: Method that add a new field with the Label of the row
docstring_tokens: Method that add a new field with the Label of the row