{{ function.name }}()

{% if function.summary %}

{{ function.summary }}

{% endif %} {{ function.visibility }} {% if function.abstract %}abstract{% endif %} {% if function.final %}final{% endif %} {% if function.static %}static{% endif %} {{ function.name }}( {% for argument in function.arguments %} {% if argument.default %}[{% endif %}{% if not loop.first %}, {% endif %} {% if argument.isVariadic %}...{% endif %} {%- if argument.byReference -%}&{%- endif -%} ${{ argument.name }} : {{ argument.type|route('class:short')|join('|')|raw }} {% if argument.default %} = {{ argument.default }} ]{% endif %} {% endfor %} ) : {{ function.response.type|route('class:short')|join('|')|raw }} {% if function.description %}
{{ function.description|markdown }}
{% endif %} {% if function.arguments|length > 0 %}
Parameters
{% for argument in function.arguments %}
${{ argument.name }} : {{ argument.type|route('class:short')|join('|')|raw }} {% if argument.default %} = {{ argument.default }}{% endif %}
{{ argument.description|default('')|markdown }}
{% endfor %}
{% endif %} {% set visibleTags = function.tags|filter((v,k) => k not in ['param', 'return', 'package']) %} {{ include ('tags.html.twig', {tags: visibleTags}) }} {% if (function.response.type and function.response.type != 'void') or function.response.description %}
Return values
{{ function.response.type|route('class:short')|join('|')|raw }} {% if function.response.description %} — {{ function.response.description|markdown }} {% endif %} {% endif %}