File "HandleAction.php"

Full Path: /home/jlklyejr/public_html/post-date/wp-content/plugins/flexible-shipping/src/WPDesk/FS/Shipment/BulkAction/HandleAction.php
File size: 639 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
/**
 * Class HandleAction
 */

namespace WPDesk\FS\Shipment\BulkAction;

/**
 * .
 */
class HandleAction {

	/**
	 * @var HandleActionStrategyInterface
	 */
	private $strategy;

	/**
	 * @param HandleActionStrategyInterface $strategy
	 *
	 * @return $this
	 */
	public function set_strategy( HandleActionStrategyInterface $strategy ): self {
		$this->strategy = $strategy;

		return $this;
	}

	/**
	 * @param string $redirect_to .
	 * @param array  $post_ids    .
	 *
	 * @return string
	 */
	public function handle( string $redirect_to, array $post_ids ): string {
		return $this->strategy->handle( $redirect_to, $post_ids );
	}
}