src/objects/Pool.php
public final function add($id, object $object): void
    {
        if ($this->has($id)) {
            throw new PoolException("Object already in pool with id '{$id}'");
        }

        $this->set($id, $object);
    }
public final function add($id, object $object): void
    {
        if ($this->has($id)) {
            throw new PoolException("Object already in pool with id '{$id}'");
        }

        $this->set($id, $object);
    }
Add.
@param  int|string $id
@param  object     $object
@return void
@throws froq\util\objects\PoolException