mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 01:16:15 +00:00
Promote some constructors
This commit is contained in:
@ -30,18 +30,11 @@ use Webmozart\PathUtil\Path;
|
||||
* Task used to dump memory from AsyncWorkers
|
||||
*/
|
||||
class DumpWorkerMemoryTask extends AsyncTask{
|
||||
/** @var string */
|
||||
private $outputFolder;
|
||||
/** @var int */
|
||||
private $maxNesting;
|
||||
/** @var int */
|
||||
private $maxStringSize;
|
||||
|
||||
public function __construct(string $outputFolder, int $maxNesting, int $maxStringSize){
|
||||
$this->outputFolder = $outputFolder;
|
||||
$this->maxNesting = $maxNesting;
|
||||
$this->maxStringSize = $maxStringSize;
|
||||
}
|
||||
public function __construct(
|
||||
private string $outputFolder,
|
||||
private int $maxNesting,
|
||||
private int $maxStringSize
|
||||
){}
|
||||
|
||||
public function onRun() : void{
|
||||
MemoryManager::dumpMemory(
|
||||
|
Reference in New Issue
Block a user