Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | final class ProductMaker implements Maker |
||
15 | { |
||
16 | /** |
||
17 | * @var ConfigProvider |
||
18 | */ |
||
19 | private $configProvider; |
||
20 | |||
21 | /** |
||
22 | * @var Filesystem |
||
23 | */ |
||
24 | private $filesystem; |
||
25 | |||
26 | /** |
||
27 | * Factory constructor. |
||
28 | */ |
||
29 | public function __construct(Filesystem $filesystem, ConfigProvider $configProvider) |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @throws Exception if directory is invalid or product population fails |
||
37 | */ |
||
38 | public function create(string $directory): Product |
||
50 |