| 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 | * @param Filesystem $filesystem |
||
| 30 | * @param ConfigProvider $configProvider |
||
| 31 | */ |
||
| 32 | public function __construct(Filesystem $filesystem, ConfigProvider $configProvider) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $directory |
||
| 40 | * |
||
| 41 | * @throws Exception if directory is invalid |
||
| 42 | * |
||
| 43 | * @return Product |
||
| 44 | */ |
||
| 45 | public function create(string $directory): Product |
||
| 56 | } |
||
| 57 |