Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
- <?php
-
- namespace Lc\CaracoleBundle\Solver\Product;
-
- use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface;
- use Lc\CaracoleBundle\Model\Product\ProductFamilySectionPropertyInterface;
- use Lc\CaracoleBundle\Model\Section\SectionInterface;
-
- class ProductFamilySectionPropertySolver
- {
-
- public function getProductFamilySectionProperty(ProductFamilyInterface $productFamily, SectionInterface $section):? ProductFamilySectionPropertyInterface
- {
- foreach ($productFamily->getProductFamilySectionProperties() as $productFamilySectionProperty) {
- if ($productFamilySectionProperty->getSection()->getId() == $section->getId()) {
- return $productFamilySectionProperty;
- }
- }
-
- return null;
- }
-
- }
-
|