| Total Complexity | 7 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Artifacts implements \Countable |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var array|string[] |
||
| 16 | */ |
||
| 17 | private $artifacts; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Artifacts constructor. |
||
| 21 | * |
||
| 22 | * @param array|string[] $artifacts |
||
| 23 | * |
||
| 24 | * @throws ParseException |
||
| 25 | */ |
||
| 26 | 5 | public function __construct(array $artifacts) |
|
| 29 | 3 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @return array|string[] |
||
| 33 | */ |
||
| 34 | 1 | public function getPatterns() |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return int |
||
| 41 | */ |
||
| 42 | 1 | public function count() |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param array|string[] $artifacts |
||
| 49 | * |
||
| 50 | * @throws ParseException |
||
| 51 | * |
||
| 52 | * @return void |
||
| 53 | */ |
||
| 54 | 5 | private function parse(array $artifacts) |
|
| 73 |