Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public function create(string $directory): Product |
||
46 | { |
||
47 | if (!$this->filesystem->isDirectory($directory)) { |
||
48 | throw InvalidDirectory::forDirectory($directory); |
||
49 | } |
||
50 | |||
51 | $product = new Product($this->filesystem, $this->configProvider, $directory); |
||
52 | $product->populate(); |
||
53 | |||
54 | return $product; |
||
55 | } |
||
56 | } |
||
57 |