1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-13 09:37:26 +01:00
parallel/lib/Sync/Internal/ExitSuccess.php

21 lines
337 B
PHP
Raw Normal View History

2015-08-07 01:59:25 +02:00
<?php
2016-08-18 18:04:48 +02:00
namespace Amp\Concurrent\Sync\Internal;
class ExitSuccess implements ExitStatus {
2015-08-07 01:59:25 +02:00
/**
* @var mixed
*/
private $result;
2016-08-18 18:04:48 +02:00
public function __construct($result) {
2015-08-07 01:59:25 +02:00
$this->result = $result;
}
/**
* {@inheritdoc}
*/
2016-08-18 18:04:48 +02:00
public function getResult() {
2015-08-07 01:59:25 +02:00
return $this->result;
}
}