File "Shutdown_Collection.php"
Full Path: /home/magiggjm/magistvandroids.com/wp-content/plugins/kadence-blocks/includes/resources/Shutdown/Shutdown_Collection.php
File size: 540 bytes
MIME-type: text/x-php
Charset: utf-8
<?php declare( strict_types=1 );
namespace KadenceWP\KadenceBlocks\Shutdown;
use KadenceWP\KadenceBlocks\Shutdown\Contracts\Terminable;
/**
* A collection of tasks that will run on the WordPress shutdown action.
*/
final class Shutdown_Collection {
/**
* @var Terminable[]
*/
private $tasks;
/**
* @param Terminable[] $tasks The tasks to process.
*/
public function __construct( array $tasks ) {
$this->tasks = $tasks;
}
/**
* @return Terminable[]
*/
public function all(): array {
return $this->tasks;
}
}