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