1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-03 10:07:49 +01:00
parallel/lib/Sync/Internal/ExitSuccess.php
2016-08-21 23:40:48 -05:00

21 lines
364 B
PHP

<?php declare(strict_types = 1);
namespace Amp\Concurrent\Sync\Internal;
class ExitSuccess implements ExitStatus {
/**
* @var mixed
*/
private $result;
public function __construct($result) {
$this->result = $result;
}
/**
* {@inheritdoc}
*/
public function getResult() {
return $this->result;
}
}