public function __toString() { return $this->state->__toString(); }
public function __construct(Promise $promise, TaskQueue $tasks) { parent::__construct($promise, $tasks, null); $this->onFulfilled = new \SplObjectStorage(); $this->onRejected = new \SplObjectStorage(); }