class Thennable in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/promises/tests/Thennable.php \GuzzleHttp\Promise\Tests\Thennable
Hierarchy
- class \GuzzleHttp\Promise\Tests\Thennable
Expanded class hierarchy of Thennable
File
- vendor/guzzlehttp/ promises/ tests/ Thennable.php, line 6 
Namespace
GuzzleHttp\Promise\TestsView source
class Thennable {
  private $nextPromise = null;
  public function __construct() {
    $this->nextPromise = new Promise();
  }
  public function then(callable $res = null, callable $rej = null) {
    return $this->nextPromise
      ->then($res, $rej);
  }
  public function resolve($value) {
    $this->nextPromise
      ->resolve($value);
  }
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| Thennable:: | private | property | 1 | |
| Thennable:: | public | function | 1 | |
| Thennable:: | public | function | 1 | |
| Thennable:: | public | function | 1 | 
