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

21 lines
388 B
PHP
Raw Normal View History

2015-08-29 03:55:30 +02:00
<?php
namespace Icicle\Tests\Concurrent\Worker;
2015-09-10 06:29:41 +02:00
use Icicle\Concurrent\Worker\Environment;
2015-12-05 06:50:32 +01:00
use Icicle\Concurrent\Worker\Task;
2015-08-29 03:55:30 +02:00
2015-12-05 06:50:32 +01:00
class TestTask implements Task
2015-08-29 03:55:30 +02:00
{
private $returnValue;
public function __construct($returnValue)
{
$this->returnValue = $returnValue;
}
2015-09-10 06:29:41 +02:00
public function run(Environment $environment)
2015-08-29 03:55:30 +02:00
{
return $this->returnValue;
}
}