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