public function visitOrType(OrType $type)
    {
        $subTypes = array();

        foreach ($type->types() as $subType) {
            $subTypes[] = $subType->accept($this);
        }

        return implode('|', $subTypes);
    }
public function visitOrType(OrType $type)
    {
        $subTypes = array();

        foreach ($type->types() as $subType) {
            $subTypes[] = $subType->accept($this);
        }

        return implode('|', $subTypes);
    }
public function visitOrType ( OrType $ type ) { $ subTypes = array ( ) ; foreach ( $ type -> types ( ) as $ subType ) { $ subTypes [ ] = $ subType -> accept ( $ this ) ; } return implode ( '|' , $ subTypes ) ; }
Visit an or type.

@param OrType $type The type.

@return mixed The result of visitation.
Visit an or type .