HOME


Mini Shell 1.0
DIR: /home/dhnidqcz/pragmaticsng.org/wp-content/plugins/caldera-forms/cf2/Jobs/
Upload File :
Current File : /home/dhnidqcz/pragmaticsng.org/wp-content/plugins/caldera-forms/cf2/Jobs/DeleteTransientJob.php
<?php


namespace calderawp\calderaforms\cf2\Jobs;


class DeleteTransientJob extends Job
{

	/**
	 * ID of transient to delete
	 *
	 * @since 1.8.0
	 *
	 * @var string
	 */
	protected $transientId;

	/**
	 * DeleteTransientJob constructor.
	 *
	 * @since 1.8.0
	 *
	 * @param $transientId
	 */
	public function __construct($transientId)
	{
		$this->transientId = $transientId;
	}

	/** @inheritdoc */
	public function handle()
	{
		\Caldera_Forms_Transient::delete_transient($this->transientId);
	}
}