| 1 |
<?php |
| 2 |
/** |
| 3 |
* WPSEO plugin file. |
| 4 |
* |
| 5 |
* @package WPSEO\Admin |
| 6 |
*/ |
| 7 |
|
| 8 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Reason: The class is deprecated. |
| 9 |
|
| 10 |
/** |
| 11 |
* Represents the class that contains the available extensions for Yoast SEO. |
| 12 |
* |
| 13 |
* @deprecated 15.4 |
| 14 |
* @codeCoverageIgnore |
| 15 |
*/ |
| 16 |
class WPSEO_Extension_Manager { |
| 17 |
|
| 18 |
/** |
| 19 |
* Adds an extension to the manager. |
| 20 |
* |
| 21 |
* @deprecated 15.4 |
| 22 |
* @codeCoverageIgnore |
| 23 |
* |
| 24 |
* @param string $extension_name The extension name. |
| 25 |
* @param WPSEO_Extension|null $extension The extension value object. |
| 26 |
* |
| 27 |
* @return void |
| 28 |
*/ |
| 29 |
public function add( $extension_name, WPSEO_Extension $extension = null ) { |
| 30 |
_deprecated_function( __METHOD__, '15.4' ); |
| 31 |
} |
| 32 |
|
| 33 |
/** |
| 34 |
* Removes an extension from the manager. |
| 35 |
* |
| 36 |
* @deprecated 15.4 |
| 37 |
* @codeCoverageIgnore |
| 38 |
* |
| 39 |
* @param string $extension_name The name of the extension to remove. |
| 40 |
* |
| 41 |
* @return void |
| 42 |
*/ |
| 43 |
public function remove( $extension_name ) { |
| 44 |
_deprecated_function( __METHOD__, '15.4' ); |
| 45 |
} |
| 46 |
|
| 47 |
/** |
| 48 |
* Returns the extension for the given extension name. |
| 49 |
* |
| 50 |
* @deprecated 15.4 |
| 51 |
* @codeCoverageIgnore |
| 52 |
* |
| 53 |
* @param string $extension_name The name of the extension to get. |
| 54 |
* |
| 55 |
* @return WPSEO_Extension|null The extension object or null when it doesn't exist. |
| 56 |
*/ |
| 57 |
public function get( $extension_name ) { |
| 58 |
_deprecated_function( __METHOD__, '15.4' ); |
| 59 |
|
| 60 |
return null; |
| 61 |
} |
| 62 |
|
| 63 |
/** |
| 64 |
* Returns all set extension. |
| 65 |
* |
| 66 |
* @deprecated 15.4 |
| 67 |
* @codeCoverageIgnore |
| 68 |
* |
| 69 |
* @return WPSEO_Extension[] Array with the extensions. |
| 70 |
*/ |
| 71 |
public function get_all() { |
| 72 |
_deprecated_function( __METHOD__, '15.4' ); |
| 73 |
|
| 74 |
return []; |
| 75 |
} |
| 76 |
|
| 77 |
/** |
| 78 |
* Checks if the plugin is activated within My Yoast. |
| 79 |
* |
| 80 |
* @deprecated 15.4 |
| 81 |
* @codeCoverageIgnore |
| 82 |
* |
| 83 |
* @param string $extension_name The extension name to check. |
| 84 |
* |
| 85 |
* @return bool True when the plugin is activated. |
| 86 |
*/ |
| 87 |
public function is_activated( $extension_name ) { |
| 88 |
_deprecated_function( __METHOD__, '15.4' ); |
| 89 |
|
| 90 |
return false; |
| 91 |
} |
| 92 |
} |
| 93 |
// phpcs:enable |
| 94 |
|