Browse Source

ProductFamilySolver : ajout méthode hasOrganicStrictLabel

develop
Guillaume Bourgeois 1 year ago
parent
commit
705e192891
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      Solver/Product/ProductFamilySolver.php

+ 5
- 0
Solver/Product/ProductFamilySolver.php View File

@@ -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);

Loading…
Cancel
Save