File: //opt/wordpress-seo/src/actions/indexing/indexable-indexing-complete-action.php
<?php
namespace Yoast\WP\SEO\Actions\Indexation;
use Yoast\WP\SEO\Helpers\Options_Helper;
/**
* Indexing action to call when the indexable indexing process is completed.
*/
class Indexable_Indexing_Complete_Action {
/**
* The options helper.
*
* @var Options_Helper
*/
protected $options;
/**
* Indexable_Indexing_Complete_Action constructor.
*
* @param Options_Helper $options The options helper.
*/
public function __construct( Options_Helper $options ) {
$this->options = $options;
}
/**
* Wraps up the indexing process.
*
* @return void
*/
public function complete() {
$this->options->set( 'indexables_indexation_completed', true );
}
}