{% if packages|default([]) is not empty %}

Packages

{% for package in packages %}
{{ package|route('class:short') }}
{% endfor %}
{% endif %} {% if namespaces|default([]) is not empty %}

Namespaces

{% for namespace in namespaces %}
{{ namespace|route('class:short') }}
{% endfor %}
{% endif %} {% if node.interfaces is not empty or node.classes is not empty or node.traits is not empty or node.enums is not empty %}

Interfaces, Classes, Traits and Enums

{% for interface in node.interfaces %}
{{ interface|route('class:short') }}
{{ interface.summary }}
{% endfor %} {% for class in node.classes %}
{{ class|route('') }}
{{ class.summary }}
{% endfor %} {% for trait in node.traits %}
{{ trait|route('class:short') }}
{{ trait.summary }}
{% endfor %} {% for enum in node.enums %}
{{ enum|route('class:short') }}
{{ enum.summary }}
{% endfor %}
{% endif %} {% set constants = constants(node) %} {% set properties = properties(node) %} {% set methods = methods(node) %} {% if constants is not empty or node.functions is not empty or methods is not empty or properties is not empty %}

Table of Contents

{% for constant in constants(node)|sortByVisibility %} {{ include('components/table-of-contents-entry.html.twig', {'type': 'constant', 'node': constant}) }} {% endfor %} {% for case in cases(node)|sortByVisibility %} {{ include('components/table-of-contents-entry.html.twig', {'type': 'case', 'node': case}) }} {% endfor %} {% for property in properties(node)|sortByVisibility %} {{ include('components/table-of-contents-entry.html.twig', {'type': 'property', 'node': property}) }} {% endfor %} {% for method in methods(node)|sortByVisibility %} {{ include('components/table-of-contents-entry.html.twig', {'type': 'method', 'node': method}) }} {% endfor %} {% for function in node.functions|default([]) %} {{ include('components/table-of-contents-entry.html.twig', {'type': 'function', 'node': function}) }} {% endfor %}
{% endif %}