| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\Actions\Indexing; |
| 4 |
|
| 5 |
use Yoast\WP\SEO\Helpers\Indexing_Helper; |
| 6 |
|
| 7 |
/** |
| 8 |
* Class Indexing_Prepare_Action. |
| 9 |
* |
| 10 |
* Action for preparing the indexing routine. |
| 11 |
*/ |
| 12 |
class Indexing_Prepare_Action { |
| 13 |
|
| 14 |
/** |
| 15 |
* The indexing helper. |
| 16 |
* |
| 17 |
* @var Indexing_Helper |
| 18 |
*/ |
| 19 |
protected $indexing_helper; |
| 20 |
|
| 21 |
/** |
| 22 |
* Action for preparing the indexing routine. |
| 23 |
* |
| 24 |
* @param Indexing_Helper $indexing_helper The indexing helper. |
| 25 |
*/ |
| 26 |
public function __construct( Indexing_Helper $indexing_helper ) { |
| 27 |
$this->indexing_helper = $indexing_helper; |
| 28 |
} |
| 29 |
|
| 30 |
/** |
| 31 |
* Prepares the indexing routine. |
| 32 |
* |
| 33 |
* @return void |
| 34 |
*/ |
| 35 |
public function prepare() { |
| 36 |
$this->indexing_helper->prepare(); |
| 37 |
} |
| 38 |
} |
| 39 |
|