You are here

class Thennable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/promises/tests/Thennable.php \GuzzleHttp\Promise\Tests\Thennable

Hierarchy

Expanded class hierarchy of Thennable

File

vendor/guzzlehttp/promises/tests/Thennable.php, line 6

Namespace

GuzzleHttp\Promise\Tests
View 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

Namesort descending Modifiers Type Description Overrides
Thennable::$nextPromise private property 1
Thennable::resolve public function 1
Thennable::then public function 1
Thennable::__construct public function 1