NinjaMutex\Tests\Mock\MockLock::isLocked PHP Method

isLocked() public method

public isLocked ( $name ) : boolean
$name
return boolean
    public function isLocked($name)
    {
        if (!$this->available) {
            return false;
        }
        if ($this->counter > 0) {
            return true;
        }
        return false;
    }