Code Duplication    Length = 10-10 lines in 2 locations

src/Pipeline/StepRegistration.php 1 location

@@ 46-55 (lines=10) @@
43
     * @param callable|null $factory
44
     * @param string|null   $description
45
     */
46
    public function __construct($stepId, $stepFqcn, callable $factory = null, $description = null)
47
    {
48
        Guard::againstNullAndEmpty('stepId', $stepId);
49
        Guard::againstNullAndEmpty('stepClass', $stepFqcn);
50
51
        $this->stepId = $stepId;
52
        $this->stepFqcn = $stepFqcn;
53
        $this->factory = $factory;
54
        $this->description = $description;
55
    }
56
57
    /**
58
     * @param StepReplacement $replacement

src/Pipeline/StepReplacement.php 1 location

@@ 38-47 (lines=10) @@
35
     * @param callable|null $factory
36
     * @param string|null   $description
37
     */
38
    public function __construct($idToReplace, $stepFqcn, callable $factory = null, $description = null)
39
    {
40
        Guard::againstNullAndEmpty('idToReplace', $idToReplace);
41
        Guard::againstNullAndEmpty('stepClass', $stepFqcn);
42
43
        $this->idToReplace = $idToReplace;
44
        $this->stepFqcn = $stepFqcn;
45
        $this->factory = $factory;
46
        $this->description = $description;
47
    }
48
49
    /**
50
     * @param BuilderInterface $builder