| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function create(string $directory): Product |
||
| 39 | { |
||
| 40 | if (!$this->filesystem->isDirectory($directory)) { |
||
| 41 | throw InvalidDirectory::forDirectory($directory); |
||
| 42 | } |
||
| 43 | |||
| 44 | $product = new Product($this->filesystem, $this->configProvider, $directory); |
||
| 45 | $product->populate(); |
||
| 46 | |||
| 47 | return $product; |
||
| 48 | } |
||
| 50 |