|
|
|
|
|
|
|
|
public function getProductFamilySectionProperty(ProductFamilyInterface $productFamily, SectionInterface $section):? ProductFamilySectionPropertyInterface |
|
|
public function getProductFamilySectionProperty(ProductFamilyInterface $productFamily, SectionInterface $section):? ProductFamilySectionPropertyInterface |
|
|
{ |
|
|
{ |
|
|
foreach ($productFamily->getProductFamilySectionProperties() as $productFamilySectionProperty) { |
|
|
foreach ($productFamily->getProductFamilySectionProperties() as $productFamilySectionProperty) { |
|
|
if ($productFamilySectionProperty->getSection() == $section) { |
|
|
|
|
|
|
|
|
if ($productFamilySectionProperty->getSection() === $section) { |
|
|
return $productFamilySectionProperty; |
|
|
return $productFamilySectionProperty; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |