You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProductCategorySolver.php 526B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Lc\CaracoleBundle\Solver\Product;
  3. use Lc\CaracoleBundle\Model\Product\ProductCategoryInterface;
  4. class ProductCategorySolver
  5. {
  6. public function isOnline(ProductCategoryInterface $productCategory)
  7. {
  8. if ($productCategory->getParent()) {
  9. if ($productCategory->getStatus() && $productCategory->getParent()->getStatus()) {
  10. return true;
  11. }
  12. } elseif ($productCategory->getStatus()) {
  13. return true;
  14. }
  15. return false;
  16. }
  17. }