| 1 | <?php |
||
| 20 | class ProductImage extends Image implements ProductImageInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var Collection|ProductVariantInterface[] |
||
| 24 | */ |
||
| 25 | protected $productVariants; |
||
| 26 | |||
| 27 | public function __construct() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | public function hasProductVariants() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function getProductVariants() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | public function hasProductVariant(ProductVariantInterface $productVariant) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | */ |
||
| 61 | public function addProductVariant(ProductVariantInterface $productVariant) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * {@inheritdoc} |
||
| 68 | */ |
||
| 69 | public function removeProductVariant(ProductVariantInterface $productVariant) |
||
| 75 | } |
||
| 76 |