public function setItem($item, $index = null): ContainerInterface
    {
        if (is_null($index)) {
            $this->items[] = $item;
        } else {
            $this->items[$index] = $item;
        }
        return $this;
    }