Library/CompilerFile.php
protected function createReturnsType(array $types, $annotated = false)
    {
        if (!$types) {
            return null;
        }

        $list = [];

        foreach ($types as $type) {
            $list[] = [
                'type' => $annotated ? 'return-type-annotation' : 'return-type-paramater',
                'data-type' => 'mixed' == $type ? 'variable' : $type,
                'mandatory' => false,
            ];
        }

        return [
            'type' => 'return-type',
            'list' => $list,
            'void' => empty($list),
        ];
    }
protected function createReturnsType(array $types, $annotated = false)
    {
        if (!$types) {
            return null;
        }

        $list = [];

        foreach ($types as $type) {
            $list[] = [
                'type' => $annotated ? 'return-type-annotation' : 'return-type-paramater',
                'data-type' => 'mixed' == $type ? 'variable' : $type,
                'mandatory' => false,
            ];
        }

        return [
            'type' => 'return-type',
            'list' => $list,
            'void' => empty($list),
        ];
    }
protected function createReturnsType ( array $ types , $ annotated = false ) { if ( ! $ types ) { return null ; } $ list = [ ] ; foreach ( $ types as $ type ) { $ list [ ] = [ 'type' => $ annotated ? 'return-type-annotation' : 'return-type-paramater' , 'data-type' => 'mixed' == $ type ? 'variable' : $ type , 'mandatory' => false , ] ; } return [ 'type' => 'return-type' , 'list' => $ list , 'void' => empty ( $ list ) , ] ; }
Create returns type list.

@param array $types
@param bool  $annotated

@return array
Create returns type list .