| @@ 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 |
|
| @@ 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 |
|