private function resetState(?string $namespace = null): void
    {
        $this->parts = new SplDoublyLinkedList();
        $this->parts->push($namespace);
    }
private function resetState(?string $namespace = null): void
    {
        $this->parts = new SplDoublyLinkedList();
        $this->parts->push($namespace);
    }
private function resetState ( ? string $ namespace = null ) : void { $ this -> parts = new SplDoublyLinkedList ( ) ; $ this -> parts -> push ( $ namespace ) ; }
Resets the state of the object to an empty state.
Resets the state of the object to an empty state .