You are here

abstract class BaseColumn in Schema 8

Hierarchy

  • class \Drupal\schema\Comparison\Result\BaseColumn

Expanded class hierarchy of BaseColumn

File

src/Comparison/Result/BaseColumn.php, line 10
Contains Drupal\schema\Comparison\Result\BaseColumn.

Namespace

Drupal\schema\Comparison\Result
View source
abstract class BaseColumn {
  protected $column_name;
  protected $table_name;
  protected $schema;
  function __construct($table_name, $column_name, $schema) {
    $this->table_name = $table_name;
    $this->column_name = $column_name;
    $this->schema = $schema;
  }
  public function getTableName() {
    return $this->table_name;
  }
  public function getColumnName() {
    return $this->column_name;
  }
  public function getModule() {
    if (isset($this->schema['module'])) {
      return $this->schema['module'];
    }
    return t('Unknown');
  }

}

Members