Code Duplication    Length = 11-13 lines in 2 locations

src/Service/DomainBus/Migrate/Collection/CollectionCommand.php 1 location

@@ 53-63 (lines=11) @@
50
     * @param OptionsInterface $options
51
     * @param VersionRepositoryInterface $versionRepository
52
     */
53
    public function __construct(
54
        CollectionInterface $collection,
55
        DeltaInterface $target,
56
        OptionsInterface $options,
57
        VersionRepositoryInterface $versionRepository
58
    ) {
59
        $this->setCollection($collection);
60
        $this->setTarget($target);
61
        $this->setOptions($options);
62
        $this->setVersionRepository($versionRepository);
63
    }
64
}
65

src/Service/DomainBus/Migrate/Converge/ConvergeCommand.php 1 location

@@ 57-69 (lines=13) @@
54
     * @param CommandBus $domainBus
55
     * @param VersionRepositoryInterface $versionRepository
56
     */
57
    public function __construct(
58
        CollectionInterface $collection,
59
        DeltaInterface $target,
60
        OptionsInterface $options,
61
        CommandBus $domainBus,
62
        VersionRepositoryInterface $versionRepository
63
    ) {
64
        $this->domainBus = $domainBus;
65
        $this->setCollection($collection);
66
        $this->setTarget($target);
67
        $this->setOptions($options);
68
        $this->setVersionRepository($versionRepository);
69
    }
70
71
    /**
72
     * getDomainBus