public function store($instance, string $name = null): void
    {
        if ($name === null) {
            $name = get_class($instance);
        }

        $name = $this->getDefinitiveName($name);

        $this->instances[$name] = $instance;
    }
public function store($instance, string $name = null): void
    {
        if ($name === null) {
            $name = get_class($instance);
        }

        $name = $this->getDefinitiveName($name);

        $this->instances[$name] = $instance;
    }
public function store ( $ instance , string $ name = null ) : void { if ( $ name === null ) { $ name = get_class ( $ instance ) ; } $ name = $ this -> getDefinitiveName ( $ name ) ; $ this -> instances [ $ name ] = $ instance ; }
Store the provided instance with the provided id, or the class name of the object.
Store the provided instance with the provided id or the class name of the object .