You are here

public function SchemaComparator::__construct in Schema 8

Constructs a new SchemaComparator instance.

Parameters

array $declared_schema: The declared schema.

DatabaseSchemaInspectionInterface $inspector: The database inspector used to retrieve the actual schema.

File

src/Comparison/SchemaComparator.php, line 43
Contains Drupal\schema\Comparison\SchemaComparator.

Class

SchemaComparator
Compares a declared schema array with the complete database schema.

Namespace

Drupal\schema\Comparison

Code

public function __construct(array $declared_schema, DatabaseSchemaInspectionInterface $inspector) {
  $this->declared_schema = $declared_schema;
  $this->inspector = $inspector;
}