mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-12 05:23:40 +08:00
20 lines
318 B
PHP
20 lines
318 B
PHP
|
<?php
|
||
|
|
||
|
namespace BookStack\Activity\Tools;
|
||
|
|
||
|
use BookStack\Activity\WatchLevels;
|
||
|
|
||
|
class WatchedParentDetails
|
||
|
{
|
||
|
public function __construct(
|
||
|
public string $type,
|
||
|
public int $level,
|
||
|
) {
|
||
|
}
|
||
|
|
||
|
public function ignoring(): bool
|
||
|
{
|
||
|
return $this->level === WatchLevels::IGNORE;
|
||
|
}
|
||
|
}
|