2016-12-30 02:16:04 +01:00
|
|
|
<?php
|
2015-08-07 01:59:25 +02:00
|
|
|
|
2017-07-29 00:34:24 +02:00
|
|
|
namespace Amp\Parallel\Sync;
|
2016-08-18 18:04:48 +02:00
|
|
|
|
2018-10-21 17:54:46 +02:00
|
|
|
final class ExitSuccess implements ExitResult
|
2018-10-07 16:50:45 +02:00
|
|
|
{
|
2016-08-26 17:10:03 +02:00
|
|
|
/** @var mixed */
|
2015-08-07 01:59:25 +02:00
|
|
|
private $result;
|
|
|
|
|
2018-10-07 16:50:45 +02:00
|
|
|
public function __construct($result)
|
|
|
|
{
|
2015-08-07 01:59:25 +02:00
|
|
|
$this->result = $result;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
2018-10-07 16:50:45 +02:00
|
|
|
public function getResult()
|
|
|
|
{
|
2015-08-07 01:59:25 +02:00
|
|
|
return $this->result;
|
|
|
|
}
|
2017-05-18 09:51:31 +02:00
|
|
|
}
|