PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.2
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.2
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / src / services / health-check / reports-trait.php

reports-trait.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 28.2, at src/services/health-check/reports-trait.php

43 lines 927 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Yoast\WP\SEO\Services\Health_Check;
4
5 /**
6 * Used by classes that use a health check Report_Builder.
7 */
8 trait Reports_Trait {
9
10 /**
11 * The factory for the builder object that generates WordPress-friendly test results.
12 *
13 * @var Report_Builder_Factory
14 */
15 private $report_builder_factory;
16
17 /**
18 * The test identifier that's set on the Report_Builder.
19 *
20 * @var string
21 */
22 private $test_identifier = '';
23
24 /**
25 * Sets the name that WordPress uses to identify this health check.
26 *
27 * @param string $test_identifier The identifier.
28 * @return void
29 */
30 public function set_test_identifier( $test_identifier ) {
31 $this->test_identifier = $test_identifier;
32 }
33
34 /**
35 * Returns a new Report_Builder instance using the set test identifier.
36 *
37 * @return Report_Builder
38 */
39 private function get_report_builder() {
40 return $this->report_builder_factory->create( $this->test_identifier );
41 }
42 }
43