php-yaoi/php-yaoi

View on GitHub
src/Migration/AbstractMigration.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * Created by PhpStorm.
 * User: vpoturaev
 * Date: 8/25/15
 * Time: 15:19
 */

namespace Yaoi\Migration;


use Yaoi\Log;

abstract class AbstractMigration implements Migration
{
    protected $dryRun = false;
    /** @var  Log */
    protected $log;

    protected $id;

    public function getId()
    {
        return $this->id;
    }

    public function setLog(Log $log = null)
    {
        $this->log = $log;
        return $this;
    }

    public function setDryRun($yes = true)
    {
        $this->dryRun = $yes;
        return $this;
    }

}