src/objects/Pool.php
public final function get($id): ?object
    {
        if (is_object($id)) {
            $id = spl_object_hash($id);
            foreach ($this->objects as $object) {
                if ($object[0] == $id) { return $object[1]; }
            }
            return null;
        }

        return $this->objects[$id][1] ?? null;
    }
public final function get($id): ?object
    {
        if (is_object($id)) {
            $id = spl_object_hash($id);
            foreach ($this->objects as $object) {
                if ($object[0] == $id) { return $object[1]; }
            }
            return null;
        }

        return $this->objects[$id][1] ?? null;
    }
Get.
@param  int|string|object $id
@return ?object