mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Modernize private property declarations in src/scheduler
This commit is contained in:
@ -31,11 +31,7 @@ use pocketmine\utils\ObjectSet;
|
||||
use pocketmine\utils\ReversePriorityQueue;
|
||||
|
||||
class TaskScheduler{
|
||||
/** @var string|null */
|
||||
private $owner;
|
||||
|
||||
/** @var bool */
|
||||
private $enabled = true;
|
||||
private bool $enabled = true;
|
||||
|
||||
/**
|
||||
* @var ReversePriorityQueue
|
||||
@ -52,8 +48,9 @@ class TaskScheduler{
|
||||
/** @var int */
|
||||
protected $currentTick = 0;
|
||||
|
||||
public function __construct(?string $owner = null){
|
||||
$this->owner = $owner;
|
||||
public function __construct(
|
||||
private ?string $owner = null
|
||||
){
|
||||
$this->queue = new ReversePriorityQueue();
|
||||
$this->tasks = new ObjectSet();
|
||||
}
|
||||
|
Reference in New Issue
Block a user