public function getObjectInformation($id, $includeObject = false)
{
if (!isset($this->leakWatch[$id])) {
return null;
}
$valid = false;
$references = 0;
$object = null;
if ($this->leakWatch[$id]->acquire()) {
$object = $this->leakWatch[$id]->get();
$this->leakWatch[$id]->release();
$valid = true;
$references = getReferenceCount($object, false);
}
return ["id" => $id, "class" => $this->leakInfo[$id]["class"], "hash" => $this->leakInfo[$id]["hash"], "valid" => $valid, "references" => $references, "object" => $includeObject ? $object : null];
}