| Total Complexity | 7 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class Volume implements ISemaphore |
||
| 19 | { |
||
| 20 | use TLang; |
||
| 21 | |||
| 22 | /** @var string path to menu dir */ |
||
| 23 | protected string $rootPath = ''; |
||
| 24 | |||
| 25 | 5 | public function __construct(string $rootPath, ?ISMTranslations $lang = null) |
|
| 26 | { |
||
| 27 | 5 | $this->rootPath = Stuff::removeEndingSlash($rootPath) . static::EXT_SEMAPHORE; |
|
| 28 | 5 | $this->setSmLang($lang); |
|
| 29 | 5 | } |
|
| 30 | |||
| 31 | 2 | public function want(): bool |
|
| 37 | } |
||
| 38 | |||
| 39 | 3 | public function has(): bool |
|
| 42 | } |
||
| 43 | |||
| 44 | 2 | public function remove(): bool |
|
| 50 | } |
||
| 51 | } |
||
| 52 |