1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-13 17:47:32 +01:00
parallel/tests/Worker/TestTask.php

20 lines
340 B
PHP
Raw Normal View History

2015-08-29 03:55:30 +02:00
<?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;
}
}