mirror of
https://github.com/danog/parallel.git
synced 2024-12-13 17:47:32 +01:00
20 lines
340 B
PHP
20 lines
340 B
PHP
|
<?php
|
||
|
namespace Icicle\Tests\Concurrent\Worker;
|
||
|
|
||
|
use Icicle\Concurrent\Worker\TaskInterface;
|
||
|
|
||
|
class TestTask implements TaskInterface
|
||
|
{
|
||
|
private $returnValue;
|
||
|
|
||
|
public function __construct($returnValue)
|
||
|
{
|
||
|
$this->returnValue = $returnValue;
|
||
|
}
|
||
|
|
||
|
public function run()
|
||
|
{
|
||
|
return $this->returnValue;
|
||
|
}
|
||
|
}
|