| 1 | <?php |
||
| 20 | class ProductVariantFactory implements ProductVariantFactoryInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var FactoryInterface |
||
| 24 | */ |
||
| 25 | private $factory; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var RepositoryInterface |
||
| 29 | */ |
||
| 30 | private $productRepository; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param FactoryInterface $factory |
||
| 34 | * @param RepositoryInterface $productRepository |
||
| 35 | */ |
||
| 36 | public function __construct(FactoryInterface $factory, RepositoryInterface $productRepository) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function createNew() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | public function createForProductWithId($id) |
||
| 65 | } |
||
| 66 |