Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
50 | 2 | public static function collect(): Map |
|
51 | { |
||
52 | 2 | $source = new Env(); |
|
53 | $source |
||
54 | 2 | ->setNext(new Filesystem()) |
|
55 | 2 | ->setNext(new GitConfig()) |
|
56 | 2 | ->setNext(new BasedOnVars()); |
|
57 | |||
58 | 2 | return Map::createGenericFromArray( |
|
59 | 2 | TypeValidator::TYPE_STRING, |
|
60 | 2 | TypeValidator::TYPE_STRING, |
|
61 | 2 | $source->collect(self::REQUIRED_VARIABLES) |
|
62 | ); |
||
63 | } |
||
64 | } |
||
65 |