Sindbad~EG File Manager

Current Path : /opt/nginxhttpd_/vendor/symfony/lock/
Upload File :
Current File : //opt/nginxhttpd_/vendor/symfony/lock/NoLock.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Lock;

/**
 * A non locking lock.
 *
 * This can be used to disable locking in classes
 * requiring a lock.
 *
 * @author Wouter de Jong <wouter@wouterj.nl>
 */
final class NoLock implements LockInterface
{
    public function acquire(bool $blocking = false): bool
    {
        return true;
    }

    public function refresh(float $ttl = null)
    {
    }

    public function isAcquired(): bool
    {
        return true;
    }

    public function release()
    {
    }

    public function isExpired(): bool
    {
        return false;
    }

    public function getRemainingLifetime(): ?float
    {
        return null;
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists