|
|
|
|
|
|
|
|
return $productsOnlineArray; |
|
|
return $productsOnlineArray; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getFirstProductOnline(ProductFamilyInterface $productFamily): ?ProductInterface |
|
|
|
|
|
{ |
|
|
|
|
|
$productsOnlineArray = $this->getProductsOnline($productFamily); |
|
|
|
|
|
if(count($productsOnlineArray) > 0) { |
|
|
|
|
|
return $productsOnlineArray[0]; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public function getReductionCatalogInherited(ProductFamilyInterface $productFamily): ?ReductionCatalogInterface |
|
|
public function getReductionCatalogInherited(ProductFamilyInterface $productFamily): ?ReductionCatalogInterface |
|
|
{ |
|
|
{ |
|
|
return $productFamily->getReductionCatalog(); |
|
|
return $productFamily->getReductionCatalog(); |