PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.4
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.4
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 / editors / application / site / website-information-repository.php

website-information-repository.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 28.4, at src/editors/application/site/website-information-repository.php

62 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
4 namespace Yoast\WP\SEO\Editors\Application\Site;
5
6 use Yoast\WP\SEO\Editors\Framework\Site\Post_Site_Information;
7 use Yoast\WP\SEO\Editors\Framework\Site\Term_Site_Information;
8
9 /**
10 * This class manages getting the two site information wrappers.
11 *
12 * @makePublic
13 */
14 class Website_Information_Repository {
15
16 /**
17 * The post site information wrapper.
18 *
19 * @var Post_Site_Information
20 */
21 private $post_site_information;
22
23 /**
24 * The term site information wrapper.
25 *
26 * @var Term_Site_Information
27 */
28 private $term_site_information;
29
30 /**
31 * The constructor.
32 *
33 * @param Post_Site_Information $post_site_information The post specific wrapper.
34 * @param Term_Site_Information $term_site_information The term specific wrapper.
35 */
36 public function __construct(
37 Post_Site_Information $post_site_information,
38 Term_Site_Information $term_site_information
39 ) {
40 $this->post_site_information = $post_site_information;
41 $this->term_site_information = $term_site_information;
42 }
43
44 /**
45 * Returns the Post Site Information container.
46 *
47 * @return Post_Site_Information
48 */
49 public function get_post_site_information(): Post_Site_Information {
50 return $this->post_site_information;
51 }
52
53 /**
54 * Returns the Term Site Information container.
55 *
56 * @return Term_Site_Information
57 */
58 public function get_term_site_information(): Term_Site_Information {
59 return $this->term_site_information;
60 }
61 }
62