src/Parser/SoapClient/Structs.php
protected function parseUnionStruct($typeDef)
    {
        $typeDefCount = count($typeDef);
        if ($typeDefCount === 3) {
            $unionName = $typeDef[1];
            $unionTypes = array_filter(explode(',', $typeDef[2]), function ($type) {
                return !empty($type);
            });
            sort($unionTypes);
            $this->getGenerator()->getStructs()->addUnionStruct($unionName, $unionTypes);
        }
    }
protected function parseUnionStruct($typeDef)
    {
        $typeDefCount = count($typeDef);
        if ($typeDefCount === 3) {
            $unionName = $typeDef[1];
            $unionTypes = array_filter(explode(',', $typeDef[2]), function ($type) {
                return !empty($type);
            });
            sort($unionTypes);
            $this->getGenerator()->getStructs()->addUnionStruct($unionName, $unionTypes);
        }
    }
protected function parseUnionStruct ( $ typeDef ) { $ typeDefCount = count ( $ typeDef ) ; if ( $ typeDefCount === 3 ) { $ unionName = $ typeDef [ 1 ] ; $ unionTypes = array_filter ( explode ( ',' , $ typeDef [ 2 ] ) , function ( $ type ) { return ! empty ( $ type ) ; } ) ; sort ( $ unionTypes ) ; $ this -> getGenerator ( ) -> getStructs ( ) -> addUnionStruct ( $ unionName , $ unionTypes ) ; } }
union types are passed such as ",dateTime,time" or ",PMS_ResStatusType,TransactionActionType,UpperCaseAlphaLength1to2"
@param array $typeDef
union types are passed such as dateTime time or PMS_ResStatusType TransactionActionType UpperCaseAlphaLength1to2