src/Container/Model/Struct.php
public function addUnionStruct($structName, $types)
    {
        $this->addVirtualStruct($structName);
        if (($struct = $this->getStructByName($structName)) instanceof Model) {
            $struct->setTypes($types);
        }
        return $this;
    }
public function addUnionStruct($structName, $types)
    {
        $this->addVirtualStruct($structName);
        if (($struct = $this->getStructByName($structName)) instanceof Model) {
            $struct->setTypes($types);
        }
        return $this;
    }
public function addUnionStruct ( $ structName , $ types ) { $ this -> addVirtualStruct ( $ structName ) ; if ( ( $ struct = $ this -> getStructByName ( $ structName ) ) instanceof Model ) { $ struct -> setTypes ( $ types ) ; } return $ this ; }
Adds a union struct
@param string $structName
@param string[] $types
@return Struct
Adds a union struct