You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @property-read non-empty-string $url_metrics_slug Slug for the od_url_metrics post.
25
-
* @property-read non-empty-string $current_etag Current ETag.
26
25
* @property-read OD_Link_Collection $link_collection Link collection.
27
26
*/
28
27
finalclass OD_Template_Optimization_Context {
@@ -36,12 +35,16 @@ final class OD_Template_Optimization_Context {
36
35
private$url_metric_group_collection;
37
36
38
37
/**
39
-
* Tag visitor registry.
38
+
* HTML Tag Processor.
39
+
*
40
+
* This object is not directly exposed with an accessor property. This class exposes {@see self::append_head_html()}
41
+
* and {@see self::append_body_html()} methods which wrap calls to the underlying
42
+
* {@see OD_HTML_Tag_Processor::append_head_html()} and {@see OD_HTML_Tag_Processor::append_body_html()}.s
40
43
*
41
44
* @since n.e.x.t
42
-
* @var OD_Tag_Visitor_Registry
45
+
* @var OD_HTML_Tag_Processor
43
46
*/
44
-
private$tag_visitor_registry;
47
+
private$processor;
45
48
46
49
/**
47
50
* ID for the od_url_metrics post which provided the URL Metrics in the collection.
@@ -69,14 +72,6 @@ final class OD_Template_Optimization_Context {
69
72
*/
70
73
private$url_metrics_slug;
71
74
72
-
/**
73
-
* Current ETag.
74
-
*
75
-
* @since n.e.x.t
76
-
* @var non-empty-string
77
-
*/
78
-
private$current_etag;
79
-
80
75
/**
81
76
* Link collection.
82
77
*
@@ -90,22 +85,46 @@ final class OD_Template_Optimization_Context {
90
85
*
91
86
* @since n.e.x.t
92
87
*
88
+
* @param OD_HTML_Tag_Processor $processor HTML Tag Processor.
93
89
* @param OD_URL_Metric_Group_Collection $url_metric_group_collection URL Metric group collection.
94
-
* @param OD_Tag_Visitor_Registry $tag_visitor_registry Tag visitor registry.
95
-
* @param positive-int|null $url_metrics_id ID for the od_url_metrics post which provided the URL Metrics in the collection. May be null if no post has been created yet.
90
+
* @param OD_Link_Collection $link_collection Link collection.
* @param non-empty-string $url_metrics_slug Slug for the od_url_metrics post.
98
-
* @param non-empty-string $current_etag Current ETag.
99
-
* @param OD_Link_Collection $link_collection Link collection.
93
+
* @param positive-int|null $url_metrics_id ID for the od_url_metrics post which provided the URL Metrics in the collection. May be null if no post has been created yet.
0 commit comments