schemaConfig = $schemaConfig; $this->schemaDiff = $schemaDiff; } /** * @return string */ public function getNotUpToDateMessage() : string { return 'Declarative Schema is not up to date'; } /** * @return bool */ public function isUpToDate() : bool { $declarativeSchema = $this->schemaConfig->getDeclarationConfig(); $dbSchema = $this->schemaConfig->getDbConfig(); $diff = $this->schemaDiff->diff($declarativeSchema, $dbSchema); return empty($diff->getAll()); } }