Files
kupshop/bundles/KupShop/KupShopBundle/Context/EmptiableContext.php
2025-08-02 16:30:27 +02:00

24 lines
494 B
PHP

<?php
declare(strict_types=1);
namespace KupShop\KupShopBundle\Context;
/**
* Should extend ContextInterface.
*/
interface EmptiableContext
{
/**
* Sets the active object / entity to null.<br>
* getActive and getActiveId return null and won't autoload
* a new object / entity.
*/
public function forceEmpty(): void;
/**
* Returns true when the current active object / entity is (forcefully) set to null.
*/
public function isEmpty(): bool;
}