Skip to content

DestructorCallbackTrait ​

trait · pocketmine\utils\DestructorCallbackTrait · source

This trait provides destructor callback functionality to objects which use it. This enables a weakmap-like system to function without actually having weak maps. TODO: remove this in PHP 8

Methods ​

__destruct() ​

php
public function __destruct()

getDestructorCallbacks() ​

php
public function getDestructorCallbacks() : \pocketmine\utils\ObjectSet

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.