# solid-performance/trunk/src/Performance/Update/Tasks/Contracts/Task.php

Solid Performance – Your No-Code Caching, Performance, &amp; Page Speed Solution, version trunk. 29 lines.

- Page: https://pluginprobe.com/plugins/solid-performance/trunk/code/src/Performance/Update/Tasks/Contracts/Task.php
- Raw: https://pluginprobe.com/plugins/solid-performance/trunk/raw/src/Performance/Update/Tasks/Contracts/Task.php
- Modified: 2025-02-13T01:04:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/solid-performance/trunk/code/src/Performance/Update/Tasks/Contracts/Task.php#L10-L20`.

```php
<?php
/**
 * The Updater Task contract. Both pre/post bootstrap tasks should
 * implement this interface.
 *
 * @package SolidWP\Performance
 */

declare( strict_types=1 );

namespace SolidWP\Performance\Update\Tasks\Contracts;

interface Task {

	/**
	 * Whether this task should run.
	 *
	 * @return bool
	 */
	public function should_run(): bool;

	/**
	 * Run the task.
	 *
	 * @return void
	 */
	public function run(): void;
}

```
