| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\Introductions\Application; |
| 4 |
|
| 5 |
use Yoast\WP\SEO\Helpers\Current_Page_Helper; |
| 6 |
use Yoast\WP\SEO\Introductions\Domain\Introduction_Interface; |
| 7 |
|
| 8 |
/** |
| 9 |
* Represents the introduction for the AI Brand Insights pre-launch. |
| 10 |
*/ |
| 11 |
class AI_Brand_Insights_Pre_Launch implements Introduction_Interface { |
| 12 |
|
| 13 |
use User_Allowed_Trait; |
| 14 |
|
| 15 |
public const ID = 'ai-brand-insights-pre-launch'; |
| 16 |
|
| 17 |
/** |
| 18 |
* Holds the current page helper. |
| 19 |
* |
| 20 |
* @var Current_Page_Helper |
| 21 |
*/ |
| 22 |
private $current_page_helper; |
| 23 |
|
| 24 |
/** |
| 25 |
* Constructs the introduction. |
| 26 |
* |
| 27 |
* @codeCoverageIgnore |
| 28 |
* |
| 29 |
* @param Current_Page_Helper $current_page_helper The current page helper. |
| 30 |
*/ |
| 31 |
public function __construct( Current_Page_Helper $current_page_helper ) { |
| 32 |
$this->current_page_helper = $current_page_helper; |
| 33 |
} |
| 34 |
|
| 35 |
/** |
| 36 |
* Returns the ID. |
| 37 |
* |
| 38 |
* @codeCoverageIgnore |
| 39 |
* |
| 40 |
* @return string The ID. |
| 41 |
*/ |
| 42 |
public function get_id() { |
| 43 |
return self::ID; |
| 44 |
} |
| 45 |
|
| 46 |
/** |
| 47 |
* Returns the requested pagination priority. Lower means earlier. |
| 48 |
* |
| 49 |
* @codeCoverageIgnore |
| 50 |
* |
| 51 |
* @return int The priority. |
| 52 |
*/ |
| 53 |
public function get_priority() { |
| 54 |
return 20; |
| 55 |
} |
| 56 |
|
| 57 |
/** |
| 58 |
* Returns whether this introduction should show. |
| 59 |
* |
| 60 |
* @codeCoverageIgnore |
| 61 |
* |
| 62 |
* @return bool Whether this introduction should show. |
| 63 |
*/ |
| 64 |
public function should_show() { |
| 65 |
return false; |
| 66 |
} |
| 67 |
} |
| 68 |
|