Skip to content
Snippets Groups Projects
Select Git revision
  • 16880789bd735a2e2a8e3f4b183792965c8ec253
  • main default protected
  • devel
  • 1.1.0
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
9 results

AbstractMigration.php

Blame
  • AbstractMigration.php 393 B
    <?php declare(strict_types=1);
    
    namespace WPDesk\Migrations;
    
    use Psr\Log\LoggerInterface;
    
    abstract class AbstractMigration {
    
        protected $wpdb;
        protected $logger;
    
        public function __construct(\wpdb $wpdb, LoggerInterface $logger){
            $this->wpdb = $wpdb;
            $this->logger = $logger;
        }
    
        abstract public function up(): bool;
    
        public function down(): void {}
    
    }