shiracdn/vendor/react/promise/tests/fixtures/SimpleTestCancellableThenable.php

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;
}
}