You are here

BaseTable.php in Schema 8

File

src/Comparison/Result/BaseTable.php
View source
<?php

/**
 * @file
 * Contains Drupal\schema\Comparison\Result\BaseTable.
 */
namespace Drupal\schema\Comparison\Result;

abstract class BaseTable {
  protected $table_name;
  protected $schema;
  function __construct($table_name, $schema) {
    $this->table_name = $table_name;
    $this->schema = $schema;
  }
  public function getTableName() {
    return $this->table_name;
  }
  public function getModule() {
    if (isset($this->schema['module'])) {
      return $this->schema['module'];
    }
    return t('Unknown');
  }

}

Classes

Namesort descending Description
BaseTable