| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\Actions\Importing; |
| 4 |
|
| 5 |
use Yoast\WP\SEO\Actions\Indexing\Limited_Indexing_Action_Interface; |
| 6 |
|
| 7 |
interface Importing_Action_Interface extends Importing_Indexation_Action_Interface, Limited_Indexing_Action_Interface { |
| 8 |
|
| 9 |
/** |
| 10 |
* Returns the name of the plugin we import from. |
| 11 |
* |
| 12 |
* @return string The plugin name. |
| 13 |
*/ |
| 14 |
public function get_plugin(); |
| 15 |
|
| 16 |
/** |
| 17 |
* Returns the type of data we import. |
| 18 |
* |
| 19 |
* @return string The type of data. |
| 20 |
*/ |
| 21 |
public function get_type(); |
| 22 |
|
| 23 |
/** |
| 24 |
* Whether or not this action is capable of importing given a specific plugin and type. |
| 25 |
* |
| 26 |
* @param string|null $plugin The name of the plugin being imported. |
| 27 |
* @param string|null $type The component of the plugin being imported. |
| 28 |
* |
| 29 |
* @return bool True if the action can import the given plugin's data of the given type. |
| 30 |
*/ |
| 31 |
public function is_compatible_with( $plugin = null, $type = null ); |
| 32 |
} |
| 33 |
|