LazyRecord\Schema\Comparator\ColumnDiff::__construct PHP Method

__construct() public method

public __construct ( $name, $flag, LazyRecord\Schema\ColumnAccessorInterface $before = null, LazyRecord\Schema\ColumnAccessorInterface $after = null )
$before LazyRecord\Schema\ColumnAccessorInterface
$after LazyRecord\Schema\ColumnAccessorInterface
    public function __construct($name, $flag, ColumnAccessorInterface $before = null, ColumnAccessorInterface $after = null)
    {
        $this->name = $name;
        $this->flag = $flag;
        $this->before = $before;
        $this->after = $after;
        if (!$before && !$after) {
            throw new LogicException('You must provide either {before} column or {after} column');
        }
    }