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

31 lines
505 B
PHP
Raw Normal View History

2016-05-22 00:11:03 -05:00
<?php
2016-05-23 22:48:28 -05:00
namespace Amp\Internal;
2016-05-22 00:11:03 -05:00
2016-06-01 12:18:11 -05:00
/**
* Used in PHP 5.x to represent coroutine return values. Use the return keyword in PHP 7.x.
*
* @internal
*/
2016-05-22 00:11:03 -05:00
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;
}
}