| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\Actions\Indexing; |
| 4 |
|
| 5 |
use Yoast\WP\SEO\Helpers\Indexing_Helper; |
| 6 |
|
| 7 |
/** |
| 8 |
* Indexing action to call when the indexing is completed. |
| 9 |
*/ |
| 10 |
class Indexing_Complete_Action { |
| 11 |
|
| 12 |
/** |
| 13 |
* The indexing helper. |
| 14 |
* |
| 15 |
* @var Indexing_Helper |
| 16 |
*/ |
| 17 |
protected $indexing_helper; |
| 18 |
|
| 19 |
/** |
| 20 |
* Indexing_Complete_Action constructor. |
| 21 |
* |
| 22 |
* @param Indexing_Helper $indexing_helper The indexing helper. |
| 23 |
*/ |
| 24 |
public function __construct( Indexing_Helper $indexing_helper ) { |
| 25 |
$this->indexing_helper = $indexing_helper; |
| 26 |
} |
| 27 |
|
| 28 |
/** |
| 29 |
* Wraps up the indexing process. |
| 30 |
* |
| 31 |
* @return void |
| 32 |
*/ |
| 33 |
public function complete() { |
| 34 |
$this->indexing_helper->complete(); |
| 35 |
} |
| 36 |
} |
| 37 |
|