Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | abstract class AbstractStep implements StepInterface |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var ArtifactCollection |
||
18 | */ |
||
19 | protected $artifacts; |
||
20 | |||
21 | /** |
||
22 | * @return string |
||
23 | */ |
||
24 | 1 | public function getName() : string |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param ArtifactCollection $artifacts |
||
31 | * |
||
32 | * @return StepInterface |
||
33 | */ |
||
34 | 3 | public function setArtifacts(ArtifactCollection $artifacts): StepInterface |
|
35 | { |
||
36 | 3 | $this->artifacts = $artifacts; |
|
37 | |||
38 | 3 | return $this; |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param $name |
||
43 | * @return mixed |
||
44 | * |
||
45 | * @throws ProcessingException |
||
46 | */ |
||
47 | 2 | protected function getArtifact($name) |
|
55 | } |
||
56 | } |