mirror of
https://github.com/danog/parallel.git
synced 2024-12-12 09:09:35 +01:00
19 lines
350 B
PHP
19 lines
350 B
PHP
<?php declare(strict_types = 1);
|
|
|
|
namespace Amp\Parallel\Sync\Internal;
|
|
|
|
class ExitSuccess implements ExitStatus {
|
|
/** @var mixed */
|
|
private $result;
|
|
|
|
public function __construct($result) {
|
|
$this->result = $result;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getResult() {
|
|
return $this->result;
|
|
}
|
|
} |