24 lines
494 B
PHP
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;
|
|
}
|