← All changes
|
includes/sdk/s3/GuzzleHttp/Promise/TaskQueueInterface.php
+4
-5
1.0.2
→
1.4.1
View file →
| @@ -1,6 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +declare (strict_types=1); | |
| 3 | 4 | namespace Dudlewebs\WPMCS\s3\GuzzleHttp\Promise; |
| 4 | 5 | |
| 5 | 6 | interface TaskQueueInterface |
| 6 | 7 | { |
| @@ -5,18 +6,16 @@ | ||
| 5 | 6 | interface TaskQueueInterface |
| 6 | 7 | { |
| 7 | 8 | /** |
| 8 | 9 | * Returns true if the queue is empty. |
| 9 | - * | |
| 10 | - * @return bool | |
| 11 | 10 | */ |
| 12 | - public function isEmpty(); | |
| 11 | + public function isEmpty() : bool; | |
| 13 | 12 | /** |
| 14 | 13 | * Adds a task to the queue that will be executed the next time run is |
| 15 | 14 | * called. |
| 16 | 15 | */ |
| 17 | - public function add(callable $task); | |
| 16 | + public function add(callable $task) : void; | |
| 18 | 17 | /** |
| 19 | 18 | * Execute all of the pending task in the queue. |
| 20 | 19 | */ |
| 21 | - public function run(); | |
| 20 | + public function run() : void; | |
| 22 | 21 | } |