1
0
mirror of https://github.com/danog/parallel.git synced 2025-01-06 04:38:21 +01:00
parallel/tests/Worker/TestTask.php
2016-01-24 23:04:29 -06:00

20 lines
361 B
PHP

<?php
namespace Icicle\Tests\Concurrent\Worker;
use Icicle\Concurrent\Worker\{Environment, Task};
class TestTask implements Task
{
private $returnValue;
public function __construct($returnValue)
{
$this->returnValue = $returnValue;
}
public function run(Environment $environment)
{
return $this->returnValue;
}
}