@@ -101,29 +101,35 @@ public function __construct( OD_HTML_Tag_Processor $processor, OD_URL_Metric_Gro
101
101
}
102
102
103
103
/**
104
- * Append HTML to the HEAD.
104
+ * Appends raw HTML to the HEAD.
105
105
*
106
- * The provided HTML must be valid! No validation is performed.
106
+ * The provided HTML must be valid for insertion in the HEAD. No validation is currently performed. However, in the
107
+ * future the HTML Processor may be used to ensure the validity of the provided HTML. At that time, when invalid
108
+ * HTML is provided, this method may emit a `_doing_it_wrong()` warning.
107
109
*
108
110
* @since n.e.x.t
111
+ * @see OD_HTML_Tag_Processor::append_head_html()
109
112
*
110
- * @param non-empty- string $html HTML to inject.
113
+ * @param string $raw_html Raw HTML to inject.
111
114
*/
112
- public function append_head_html ( string $ html ): void {
113
- $ this ->processor ->append_head_html ( $ html );
115
+ public function append_head_html ( string $ raw_html ): void {
116
+ $ this ->processor ->append_head_html ( $ raw_html );
114
117
}
115
118
116
119
/**
117
- * Append HTML to the BODY.
120
+ * Appends raw HTML to the BODY.
118
121
*
119
- * The provided HTML must be valid! No validation is performed.
122
+ * The provided HTML must be valid for insertion in the BODY. No validation is currently performed. However, in the
123
+ * future the HTML Processor may be used to ensure the validity of the provided HTML. At that time, when invalid
124
+ * HTML is provided, this method may emit a `_doing_it_wrong()` warning.
120
125
*
121
126
* @since n.e.x.t
127
+ * @see OD_HTML_Tag_Processor::append_body_html()
122
128
*
123
- * @param non-empty- string $html HTML to inject.
129
+ * @param string $raw_html HTML to inject.
124
130
*/
125
- public function append_body_html ( string $ html ): void {
126
- $ this ->processor ->append_body_html ( $ html );
131
+ public function append_body_html ( string $ raw_html ): void {
132
+ $ this ->processor ->append_body_html ( $ raw_html );
127
133
}
128
134
129
135
/**
@@ -137,7 +143,7 @@ public function append_body_html( string $html ): void {
137
143
* @throws Error When property is unknown.
138
144
*/
139
145
public function __get ( string $ name ) {
140
- // Note: The $processor is intentionally not exposed .
146
+ // Note: There is intentionally not a 'processor' case to expose $this->processor .
141
147
switch ( $ name ) {
142
148
case 'url_metrics_id ' :
143
149
return $ this ->url_metrics_id ;
0 commit comments