Exemple #1
0
 /**
  * @param VersionInterface[]|\Traversable $versions
  * @param ResolverInterface $resolver
  * @param ComparatorInterface $comparator
  *
  * @throws \Baleen\Migrations\Exception\InvalidArgumentException
  */
 public function __construct($versions = [], ResolverInterface $resolver = null, ComparatorInterface $comparator = null)
 {
     if (null === $comparator) {
         $comparator = new MigrationComparator();
     }
     $this->comparator = $comparator;
     parent::__construct($versions, $resolver);
 }