{% if method.phpdoc %}{% include 'phpdoc/method_phpdoc.twig' with {'method_phpdoc': method.phpdoc} %}{% endif %}
    {{ method.visibility ~ (method.visibility is not empty ? ' ') -}}
    function {{ method.name }}({% include 'collection/argument_collection.twig' with {
        'argument_collection': method.allArguments,
        'length_restriction': 22 + method.name | length
    } only %});
{#- Trimming lines -#}

{% if method.phpdoc %}{% include 'phpdoc/method_phpdoc.twig' with {'method_phpdoc': method.phpdoc} %}{% endif %}
    {{ method.visibility ~ (method.visibility is not empty ? ' ') -}}
    function {{ method.name }}({% include 'collection/argument_collection.twig' with {
        'argument_collection': method.allArguments,
        'length_restriction': 22 + method.name | length
    } only %}){{ method.returnType is not empty ? ' : ' ~ method.returnType : '' -}};
{#- Trimming lines -#}

Add return type template for interface methods.
Add return type template for interface methods.

This makes the template of pure_virtual.twig follow that of method.twig.
