{% macro array_key(key) %} {% if key is not empty %} [{{ key }}] {% endif %} {% endmacro %} {% macro property_visibility(var) %} {% if var is not empty %} {% if key.visibility is defined %} {{ _self.visibility_name(key.visibility) }} {% endif %} {% endif %} {% endmacro %} {% macro visibility_name(visibility) %} {% if visibility == constant('Ladybug\\Type\\Object\\VisibilityInterface::VISIBILITY_PRIVATE') %} private {% elseif visibility == constant('Ladybug\\Type\\Object\\VisibilityInterface::VISIBILITY_PROTECTED') %} protected {% else %} public {% endif %} {% endmacro %} {% macro array_block(title, data, level, show_keys) %} {% spaceless %} {% set id = random(1000) %}
    {% for key,var in data %}
  1. {{ render_type(var)|raw }}
  2. {% endfor %}
{% endspaceless %} {% endmacro %} {% macro render_object_method(method) %}
{{ method.name }}({% spaceless %} {% for methodParameter in method.parameters %} {% if methodParameter.type is not empty %} {{ methodParameter.type }} {% endif %} ${{ methodParameter.name }} {% if methodParameter.defaultValue is not null %} = {{ methodParameter.defaultValue.formattedValue }} {% endif %}{% if not loop.last %},{% endif %} {% endfor %}{% endspaceless %})
{% endmacro %}