public function addExtension(string $name, ?Struct $extension): void
    {
        $this->extensions[$name] = $extension;
    }
public function addExtension(string $name, ?Struct $extension): void
    {
        $this->extensions[$name] = $extension;
    }
public function addExtension ( string $ name , ? Struct $ extension ) : void { $ this -> extensions [ $ name ] = $ extension ; }
Adds a new extension struct into the class storage.
The passed name is used as unique identifier and has to be stored too.
Adds a new extension struct into the class storage . The passed name is used as unique identifier and has to be stored too .