NinjaMutex\Tests\Mock\MockPDO::_mock_release_lock PHP 메소드

_mock_release_lock() 보호된 메소드

protected _mock_release_lock ( string $key ) : MockPDOStatement
$key string
리턴 MockPDOStatement
    protected function _mock_release_lock($key)
    {
        if (isset($this->current[$key])) {
            unset(self::$data[$key]);
            unset($this->current[$key]);
            return $this->_mock_pdo_statement->_mock_set_fetch("1");
        }
        return $this->_mock_pdo_statement->_mock_set_fetch("0");
    }