Viewing File: /home/maglabs/it/dev/tests/integration/framework/Magento/TestFramework/Lock/Backend/DummyLocker.php
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\TestFramework\Lock\Backend;
use Magento\Framework\Lock\LockManagerInterface;
/**
* Dummy locker for the integration framework.
*/
class DummyLocker implements LockManagerInterface
{
/**
* @inheritdoc
*/
public function lock(string $name, int $timeout = -1): bool
{
return true;
}
/**
* @inheritdoc
*/
public function unlock(string $name): bool
{
return true;
}
/**
* @inheritdoc
*/
public function isLocked(string $name): bool
{
return false;
}
}
Back to Directory
File Manager