Files
parallel/test/Worker/TestTask.php
Aaron Piotrowski 71f8d2016d Drop strict types
2016-12-29 19:16:04 -06:00

18 lines
345 B
PHP

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