Your IP : 216.73.216.38
<?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;
}
}