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

27 lines
441 B
PHP
Raw Normal View History

<?php
namespace Amp;
/**
* @TODO This class is only necessary for PHP5; remove once PHP7 is required
*/
class CoroutineResult {
private $result;
/**
* @param mixed $result
*/
public function __construct($result) {
$this->result = $result;
}
/**
* Retrieve the coroutine return result
*
* @return mixed
*/
public function getReturn() {
return $this->result;
}
}