public static function check() { static $instance; if (!$instance) { $instance = new self(); return $instance->compare(); } return false; }
/** * @param Schema $fromSchema * @param Schema $toSchema * @return SchemaDiff */ public static function compareSchemas(Schema $fromSchema, Schema $toSchema) { $c = new self(); return $c->compare($fromSchema, $toSchema); }