| Current Path : /home/rtorresani/www/vendor/magento/module-quote-graph-ql/Model/Cart/ |
| Current File : //home/rtorresani/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();
}
}