public function clear(string $name): void
    {
        $name = $this->getDefinitiveName($name);

        if (!$this->has($name)) {
            throw NotFoundException::fromId($name);
        }

        unset($this->instances[$name]);

        $this->clearRelationship($name);
    }
public function clear(string $name): void
    {
        $name = $this->getDefinitiveName($name);

        if (!$this->has($name)) {
            throw NotFoundException::fromId($name);
        }

        unset($this->instances[$name]);

        $this->clearRelationship($name);
    }
public function clear ( string $ name ) : void { $ name = $ this -> getDefinitiveName ( $ name ) ; if ( ! $ this -> has ( $ name ) ) { throw NotFoundException :: fromId ( $ name ) ; } unset ( $ this -> instances [ $ name ] ) ; $ this -> clearRelationship ( $ name ) ; }
Clear the requested instance.

@throws NotFoundException
Clear the requested instance .