1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-13 09:37:26 +01:00
parallel/tests/Worker/TestTask.php
2015-08-28 20:55:30 -05:00

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