Pārlūkot izejas kodu

ProductFamilySolver : ajout méthode hasOrganicStrictLabel

develop
Guillaume Bourgeois pirms 1 gada
vecāks
revīzija
705e192891
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. +5
    -0
      Solver/Product/ProductFamilySolver.php

+ 5
- 0
Solver/Product/ProductFamilySolver.php Parādīt failu

@@ -434,6 +434,11 @@ class ProductFamilySolver
return $this->hasQualityLabelByArray($productFamily, ProductFamilyModel::$organicLabels);
}

public function hasOrganicStrictLabel(ProductFamilyInterface $productFamily)
{
return $this->hasQualityLabelByArray($productFamily, ProductFamilyModel::$organicStrictLabels);
}

public function hasGeographicLabel(ProductFamilyInterface $productFamily)
{
return $this->hasQualityLabelByArray($productFamily, ProductFamilyModel::$geographicLabels);

Notiek ielāde…
Atcelt
Saglabāt