| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\Integrations\Admin; |
| 4 |
|
| 5 |
use WPSEO_Admin_Asset_Manager; |
| 6 |
use Yoast\WP\SEO\Actions\Indexing\Post_Link_Indexing_Action; |
| 7 |
use Yoast\WP\SEO\Actions\Indexing\Term_Link_Indexing_Action; |
| 8 |
use Yoast\WP\SEO\Conditionals\Admin_Conditional; |
| 9 |
use Yoast\WP\SEO\Conditionals\Migrations_Conditional; |
| 10 |
use Yoast\WP\SEO\Conditionals\Yoast_Admin_And_Dashboard_Conditional; |
| 11 |
use Yoast\WP\SEO\Integrations\Integration_Interface; |
| 12 |
|
| 13 |
/** |
| 14 |
* Link_Count_Tools_Integration class. |
| 15 |
* |
| 16 |
* @deprecated 15.1 |
| 17 |
* @codeCoverageIgnore |
| 18 |
*/ |
| 19 |
class Link_Count_Tools_Integration implements Integration_Interface { |
| 20 |
|
| 21 |
/** |
| 22 |
* Returns the conditionals based in which this loadable should be active. |
| 23 |
* |
| 24 |
* @deprecated 15.1 |
| 25 |
* @codeCoverageIgnore |
| 26 |
* |
| 27 |
* @return array |
| 28 |
*/ |
| 29 |
public static function get_conditionals() { |
| 30 |
\_deprecated_function( __METHOD__, 'WPSEO 15.1' ); |
| 31 |
|
| 32 |
return [ |
| 33 |
Admin_Conditional::class, |
| 34 |
Yoast_Admin_And_Dashboard_Conditional::class, |
| 35 |
Migrations_Conditional::class, |
| 36 |
]; |
| 37 |
} |
| 38 |
|
| 39 |
/** |
| 40 |
* Constructor. |
| 41 |
* |
| 42 |
* @deprecated 15.1 |
| 43 |
* @codeCoverageIgnore |
| 44 |
* |
| 45 |
* @param Post_Link_Indexing_Action $post_link_indexing_action The post link indexing action. |
| 46 |
* @param Term_Link_Indexing_Action $term_link_indexing_action The term link indexing action. |
| 47 |
* @param WPSEO_Admin_Asset_Manager $asset_manager The asset manager. |
| 48 |
*/ |
| 49 |
public function __construct( |
| 50 |
Post_Link_Indexing_Action $post_link_indexing_action, |
| 51 |
Term_Link_Indexing_Action $term_link_indexing_action, |
| 52 |
WPSEO_Admin_Asset_Manager $asset_manager |
| 53 |
) { |
| 54 |
\_deprecated_function( __METHOD__, 'WPSEO 15.1' ); |
| 55 |
} |
| 56 |
|
| 57 |
/** |
| 58 |
* Initializes the integration. |
| 59 |
* |
| 60 |
* @deprecated 15.1 |
| 61 |
* @codeCoverageIgnore |
| 62 |
*/ |
| 63 |
public function register_hooks() { |
| 64 |
\_deprecated_function( __METHOD__, 'WPSEO 15.1' ); |
| 65 |
} |
| 66 |
|
| 67 |
/** |
| 68 |
* Enqueues all required assets. |
| 69 |
* |
| 70 |
* @deprecated 15.1 |
| 71 |
* @codeCoverageIgnore |
| 72 |
* |
| 73 |
* @return void |
| 74 |
*/ |
| 75 |
public function enqueue_assets() { |
| 76 |
\_deprecated_function( __METHOD__, 'WPSEO 15.1' ); |
| 77 |
} |
| 78 |
|
| 79 |
/** |
| 80 |
* Renders the tools list item. |
| 81 |
* |
| 82 |
* @deprecated 15.1 |
| 83 |
* @codeCoverageIgnore |
| 84 |
* |
| 85 |
* @return void |
| 86 |
*/ |
| 87 |
public function render_tools_overview_item() { |
| 88 |
\_deprecated_function( __METHOD__, 'WPSEO 15.1' ); |
| 89 |
} |
| 90 |
|
| 91 |
/** |
| 92 |
* Renders the link count indexing modal. |
| 93 |
* |
| 94 |
* @deprecated 15.1 |
| 95 |
* @codeCoverageIgnore |
| 96 |
* |
| 97 |
* @return void |
| 98 |
*/ |
| 99 |
public function render_modal() { |
| 100 |
\_deprecated_function( __METHOD__, 'WPSEO 15.1' ); |
| 101 |
} |
| 102 |
|
| 103 |
/** |
| 104 |
* Returns the total number of unindexed objects. |
| 105 |
* |
| 106 |
* @deprecated 15.1 |
| 107 |
* @codeCoverageIgnore |
| 108 |
* |
| 109 |
* @return int |
| 110 |
*/ |
| 111 |
protected function get_total_unindexed() { |
| 112 |
\_deprecated_function( __METHOD__, 'WPSEO 15.1' ); |
| 113 |
|
| 114 |
return 0; |
| 115 |
} |
| 116 |
} |
| 117 |
|