‪TYPO3CMS  ‪main
DummyLock.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
21 
26 {
30  public static function ‪getCapabilities(): int
31  {
33  }
34 
38  public static function ‪getPriority(): int
39  {
40  return 100;
41  }
42 
46  public function ‪__construct($subject) {}
47 
54  public function ‪acquire($mode = self::LOCK_CAPABILITY_EXCLUSIVE): bool
55  {
56  return false;
57  }
58 
64  public function ‪release(): bool
65  {
66  return false;
67  }
68 
74  public function ‪isAcquired(): bool
75  {
76  return false;
77  }
78 
82  public function ‪destroy(): void {}
83 }
‪TYPO3\CMS\Core\Tests\Unit\Locking\Fixtures
Definition: DummyLock.php:18
‪TYPO3\CMS\Core\Locking\LockingStrategyInterface
Definition: LockingStrategyInterface.php:26
‪TYPO3\CMS\Core\Locking\LockingStrategyInterface\LOCK_CAPABILITY_EXCLUSIVE
‪const LOCK_CAPABILITY_EXCLUSIVE
Definition: LockingStrategyInterface.php:30
‪TYPO3\CMS\Core\Tests\Unit\Locking\Fixtures\DummyLock\destroy
‪destroy()
Definition: DummyLock.php:82
‪TYPO3\CMS\Core\Tests\Unit\Locking\Fixtures\DummyLock\isAcquired
‪bool isAcquired()
Definition: DummyLock.php:74
‪TYPO3\CMS\Core\Tests\Unit\Locking\Fixtures\DummyLock
Definition: DummyLock.php:26
‪TYPO3\CMS\Core\Tests\Unit\Locking\Fixtures\DummyLock\release
‪bool release()
Definition: DummyLock.php:64
‪TYPO3\CMS\Core\Tests\Unit\Locking\Fixtures\DummyLock\acquire
‪bool acquire($mode=self::LOCK_CAPABILITY_EXCLUSIVE)
Definition: DummyLock.php:54
‪TYPO3\CMS\Core\Tests\Unit\Locking\Fixtures\DummyLock\getPriority
‪static int getPriority()
Definition: DummyLock.php:38
‪TYPO3\CMS\Core\Tests\Unit\Locking\Fixtures\DummyLock\getCapabilities
‪static int getCapabilities()
Definition: DummyLock.php:30
‪TYPO3\CMS\Core\Tests\Unit\Locking\Fixtures\DummyLock\__construct
‪__construct($subject)
Definition: DummyLock.php:46