1<?php
2
3namespace React\Promise;
4
5class SimpleTestCancellableThenable
6{
7    public $cancelCalled = false;
8
9    public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null)
10    {
11        return new self();
12    }
13
14    public function cancel()
15    {
16        $this->cancelCalled = true;
17    }
18}
19