protected function renderTypeCollection($value, $presentation)
    {
        $baseType = $this->render($value->getBaseType(), $presentation);
        $keyTypes = $this->render($value->getKeyTypes(), $presentation);
        $types = $this->render($value->getTypes(), $presentation);

        $arguments = [];
        if ($keyTypes) {
            $arguments[] = implode('|', $keyTypes);
        }

        $arguments[] = implode('|', $types);

        if ($value->getName() === 'array' && count($value->getKeyTypes()) === 0) {
            $typeString = (count($types) > 1) ? '(' . reset($arguments) . ')' : reset($arguments);
            $collection = $typeString . '[]';
        } else {
            $collection = ($baseType ?: $value->getName()) . '&lt;' . implode(',', $arguments) . '&gt;';
        }

        return $collection;
    }
protected function renderTypeCollection($value, $presentation)
    {
        $baseType = $this->render($value->getBaseType(), $presentation);
        $keyTypes = $this->render($value->getKeyTypes(), $presentation);
        $types = $this->render($value->getTypes(), $presentation);

        $arguments = [];
        if ($keyTypes) {
            $arguments[] = implode('|', $keyTypes);
        }

        $arguments[] = implode('|', $types);

        if ($value->getName() === 'array' && count($value->getKeyTypes()) === 0) {
            $typeString = (count($types) > 1) ? '(' . reset($arguments) . ')' : reset($arguments);
            $collection = $typeString . '[]';
        } else {
            $collection = ($baseType ?: $value->getName()) . '&lt;' . implode(',', $arguments) . '&gt;';
        }

        return $collection;
    }
protected function renderTypeCollection ( $ value , $ presentation ) { $ baseType = $ this -> render ( $ value -> getBaseType ( ) , $ presentation ) ; $ keyTypes = $ this -> render ( $ value -> getKeyTypes ( ) , $ presentation ) ; $ types = $ this -> render ( $ value -> getTypes ( ) , $ presentation ) ; $ arguments = [ ] ; if ( $ keyTypes ) { $ arguments [ ] = implode ( '|' , $ keyTypes ) ; } $ arguments [ ] = implode ( '|' , $ types ) ; if ( $ value -> getName ( ) === 'array' && count ( $ value -> getKeyTypes ( ) ) === 0 ) { $ typeString = ( count ( $ types ) > 1 ) ? '(' . reset ( $ arguments ) . ')' : reset ( $ arguments ) ; $ collection = $ typeString . '[]' ; } else { $ collection = ( $ baseType ? : $ value -> getName ( ) ) . '&lt;' . implode ( ',' , $ arguments ) . '&gt;' ; } return $ collection ; }
Renders the view representation for an array or collection.

@param CollectionDescriptor $value
@param string               $presentation

@return string
Renders the view representation for an array or collection .