Your IP : 216.73.216.43


Current Path : /var/www/www.indacotrentino.com/www/vendor/magento/module-quote-graph-ql/Model/Cart/
Upload File :
Current File : /var/www/www.indacotrentino.com/www/vendor/magento/module-quote-graph-ql/Model/Cart/IsActive.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace Magento\QuoteGraphQl\Model\Cart;

use Magento\Quote\Api\Data\CartInterface;

/**
 * Is cart active (can it be retrieved and updated). Requires for extensions that require to work with inactive cart.
 */
class IsActive
{
    /**
     * Is cart active
     *
     * @param CartInterface $cart
     * @return bool
     */
    public function execute(CartInterface $cart): bool
    {
        return (bool) $cart->getIsActive();
    }
}