File "google-site-kit-feature-conditional.php"

Full Path: /home/concvitk/public_html/wp-content/plugins/wordpress-seo/src/conditionals/google-site-kit-feature-conditional.php
File size: 716 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Yoast\WP\SEO\Conditionals;

use Yoast\WP\SEO\Helpers\Options_Helper;

/**
 * Conditional for the Google Site Kit feature.
 */
class Google_Site_Kit_Feature_Conditional implements Conditional {

	/**
	 * The options helper.
	 *
	 * @var Options_Helper
	 */
	private $options;

	/**
	 * The constructor.
	 *
	 * @param Options_Helper $options The options helper.
	 */
	public function __construct( Options_Helper $options ) {
		$this->options = $options;
	}

	/**
	 * Returns `true` when the Site Kit feature is enabled.
	 *
	 * @return bool `true` when the Site Kit feature is enabled.
	 */
	public function is_met() {
		return $this->options->get( 'google_site_kit_feature_enabled' ) === true;
	}
}