mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Promote some constructors
This commit is contained in:
@ -27,13 +27,10 @@ use pocketmine\snooze\SleeperNotifier;
|
||||
use raklib\server\ipc\InterThreadChannelWriter;
|
||||
|
||||
final class SnoozeAwarePthreadsChannelWriter implements InterThreadChannelWriter{
|
||||
private \Threaded $buffer;
|
||||
private SleeperNotifier $notifier;
|
||||
|
||||
public function __construct(\Threaded $buffer, SleeperNotifier $notifier){
|
||||
$this->buffer = $buffer;
|
||||
$this->notifier = $notifier;
|
||||
}
|
||||
public function __construct(
|
||||
private \Threaded $buffer,
|
||||
private SleeperNotifier $notifier
|
||||
){}
|
||||
|
||||
public function write(string $str) : void{
|
||||
$this->buffer[] = $str;
|
||||
|
Reference in New Issue
Block a user