You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
338 B
PHP

<?php
namespace React\Promise;
class SimpleTestCancellableThenable
{
public $cancelCalled = false;
public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null)
{
return new self();
}
public function cancel()
{
$this->cancelCalled = true;
}
}