original_string: protected function getAttributeNamesFrom($metaModelName)
      {
          $metaModel = $this->factory->getMetaModel($metaModelName);
          $result    = [];
  
          if (empty($metaModel)) {
              return $result;
          }
  
          foreach ($metaModel->getAttributes() as $attribute) {
              $name   = $attribute->getName();
              $column = $attribute->getColName();
              $type   = $attribute->get('type');
  
              $result[$column] = \sprintf('%s (%s - %s)', $name, $column, $type);
          }
  
          return $result;
      }
code: protected function getAttributeNamesFrom($metaModelName)
      {
          $metaModel = $this->factory->getMetaModel($metaModelName);
          $result    = [];
  
          if (empty($metaModel)) {
              return $result;
          }
  
          foreach ($metaModel->getAttributes() as $attribute) {
              $name   = $attribute->getName();
              $column = $attribute->getColName();
              $type   = $attribute->get('type');
  
              $result[$column] = \sprintf('%s (%s - %s)', $name, $column, $type);
          }
  
          return $result;
      }
code_tokens: protected function getAttributeNamesFrom ( $ metaModelName ) { $ metaModel = $ this -> factory -> getMetaModel ( $ metaModelName ) ; $ result = [ ] ; if ( empty ( $ metaModel ) ) { return $ result ; } foreach ( $ metaModel -> getAttributes ( ) as $ attribute ) { $ name = $ attribute -> getName ( ) ; $ column = $ attribute -> getColName ( ) ; $ type = $ attribute -> get ( 'type' ) ; $ result [ $ column ] = \ sprintf ( '%s (%s - %s)' , $ name , $ column , $ type ) ; } return $ result ; }
docstring: Retrieve all attribute names from a given MetaModel name.
  
  @param string $metaModelName The name of the MetaModel.
  
  @return string[]
docstring_tokens: Retrieve all attribute names from a given MetaModel name .