1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 13:21:16 +01:00
amp/lib/Internal/CoroutineResult.php

26 lines
399 B
PHP
Raw Normal View History

2016-05-22 00:11:03 -05:00
<?php
namespace Amp\Awaitable\Internal;
class CoroutineResult
{
/**
* @var mixed
*/
private $value;
/**
* @param mixed $value Coroutine return value.
*/
public function __construct($value) {
$this->value = $value;
}
/**
* @return mixed Coroutine return value.
*/
public function getValue() {
return $this->value;
}
}