1+ {% extends ' base.html.twig' %}
2+
3+ {% block content %}
4+ {% include ' components/breadcrumbs.html.twig' %}
5+
6+ <article class =" phpdocumentor-element" >
7+ <div class =" mb-4" >
8+ {{ include (' components/class-title.html.twig' ) }}
9+ </div >
10+
11+ <div class =" mb-4" >
12+ {{ include (' components/element-found-in.html.twig' ) }}
13+ </div >
14+
15+ <div class =" mb-4" >
16+ {{ include (' components/element-header.html.twig' ) }}
17+ </div >
18+
19+ <div class =" d-grid gap-4" >
20+ {% set constants = constants(node ) %}
21+ {% set properties = properties(node ) %}
22+ {% set methods = methods(node ) %}
23+
24+ {% if constants is not empty %}
25+ <section class =" card border-0 shadow-sm" >
26+ <div class =" card-header bg-body-tertiary border-0 d-flex align-items-center gap-2" >
27+ <i class =" fas fa-thumbtack text-warning" ></i >
28+ <span class =" fw-semibold" >Constants</span >
29+ </div >
30+ <div class =" card-body p-4" >
31+ {{ include (' components/constants.html.twig' ) }}
32+ </div >
33+ </section >
34+ {% endif %}
35+
36+ {% if properties is not empty %}
37+ <section class =" card border-0 shadow-sm" >
38+ <div class =" card-header bg-body-tertiary border-0 d-flex align-items-center gap-2" >
39+ <i class =" fas fa-sliders-h text-info" ></i >
40+ <span class =" fw-semibold" >
41+ Properties
42+ {{ include (' components/headerlink.html.twig' , {' on' : node , ' at' : ' properties' }, with_context = false ) }}
43+ </span >
44+ </div >
45+ <div class =" card-body p-4" >
46+ {{ include (' components/properties.html.twig' ) }}
47+ </div >
48+ </section >
49+ {% endif %}
50+
51+ {% if methods is not empty %}
52+ <section class =" card border-0 shadow-sm" >
53+ <div class =" card-header bg-body-tertiary border-0 d-flex align-items-center gap-2" >
54+ <i class =" fas fa-code text-primary" ></i >
55+ <span class =" fw-semibold" >
56+ Methods
57+ {{ include (' components/headerlink.html.twig' , {' on' : node , ' at' : ' methods' }, with_context = false ) }}
58+ </span >
59+ </div >
60+ <div class =" card-body p-4" >
61+ {{ include (' components/methods.html.twig' ) }}
62+ </div >
63+ </section >
64+ {% endif %}
65+ </div >
66+
67+ {{ include (' components/source-modal.html.twig' ) }}
68+ </article >
69+ {% endblock %}
70+
71+ {% block on_this_page %}
72+ {% set constants = constants(node ) %}
73+ {% set properties = properties(node ) %}
74+ {% set methods = methods(node ) %}
75+
76+ <section >
77+ <div class =" d-grid gap-4" >
78+ <div >
79+ <div class =" small text-uppercase fw-semibold text-body-secondary mb-2" >Table of contents</div >
80+ <div class =" list-group list-group-flush" >
81+ {% if constants is not empty %}
82+ <a class =" list-group-item list-group-item-action px-0 py-2 border-0 bg-transparent" href =" {{ link(node ) }}#toc-constants" >
83+ Constants
84+ </a >
85+ {% endif %}
86+ {% if properties is not empty %}
87+ <a class =" list-group-item list-group-item-action px-0 py-2 border-0 bg-transparent" href =" {{ link(node ) }}#toc-properties" >
88+ Properties
89+ </a >
90+ {% endif %}
91+ {% if methods is not empty %}
92+ <a class =" list-group-item list-group-item-action px-0 py-2 border-0 bg-transparent" href =" {{ link(node ) }}#toc-methods" >
93+ Methods
94+ </a >
95+ {% endif %}
96+ </div >
97+ </div >
98+
99+ {% if constants is not empty %}
100+ <div >
101+ <div class =" small text-uppercase fw-semibold text-body-secondary mb-2 d-flex align-items-center gap-2" >
102+ <i class =" fas fa-thumbtack text-warning" ></i >
103+ <span >Constants</span >
104+ </div >
105+
106+ <div class =" list-group list-group-flush" >
107+ {% for constant in constants | sortByVisibility %}
108+ <a
109+ class =" list-group-item list-group-item-action px-0 py-2 border-0 bg-transparent d-flex align-items-center justify-content-between gap-2{% if constant .deprecated %} text-decoration-line-through text-body-secondary{% endif %}"
110+ href =" {{ link(constant ) }}"
111+ >
112+ <span class =" text-truncate" >{{ constant .name }}</span >
113+ {% if constant .deprecated %}
114+ <span class =" badge text-bg-warning" >Deprecated</span >
115+ {% endif %}
116+ </a >
117+ {% endfor %}
118+ </div >
119+ </div >
120+ {% endif %}
121+
122+ {% if properties is not empty %}
123+ <div >
124+ <div class =" small text-uppercase fw-semibold text-body-secondary mb-2 d-flex align-items-center gap-2" >
125+ <i class =" fas fa-sliders-h text-info" ></i >
126+ <span >Properties</span >
127+ </div >
128+
129+ <div class =" list-group list-group-flush" >
130+ {% for property in properties | sortByVisibility %}
131+ <a
132+ class =" list-group-item list-group-item-action px-0 py-2 border-0 bg-transparent d-flex align-items-center justify-content-between gap-2{% if property .deprecated %} text-decoration-line-through text-body-secondary{% endif %}"
133+ href =" {{ link(property ) }}"
134+ >
135+ <span class =" text-truncate" >${{ property .name }}</span >
136+ {% if property .deprecated %}
137+ <span class =" badge text-bg-warning" >Deprecated</span >
138+ {% endif %}
139+ </a >
140+ {% endfor %}
141+ </div >
142+ </div >
143+ {% endif %}
144+
145+ {% if methods is not empty %}
146+ <div >
147+ <div class =" small text-uppercase fw-semibold text-body-secondary mb-2 d-flex align-items-center gap-2" >
148+ <i class =" fas fa-code text-primary" ></i >
149+ <span >Methods</span >
150+ </div >
151+
152+ <div class =" list-group list-group-flush" >
153+ {% for method in methods | sortByVisibility %}
154+ <a
155+ class =" list-group-item list-group-item-action px-0 py-2 border-0 bg-transparent d-flex align-items-center justify-content-between gap-2{% if method .deprecated %} text-decoration-line-through text-body-secondary{% endif %}"
156+ href =" {{ link(method ) }}"
157+ >
158+ <span class =" text-truncate" >{{ method .name }}()</span >
159+ {% if method .deprecated %}
160+ <span class =" badge text-bg-warning" >Deprecated</span >
161+ {% endif %}
162+ </a >
163+ {% endfor %}
164+ </div >
165+ </div >
166+ {% endif %}
167+ </div >
168+ </section >
169+ {% endblock %}
0 commit comments