1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-12 09:09:35 +01:00
parallel/tests/Worker/TestTask.php
2015-09-09 23:29:41 -05:00

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;
}
}