init
This commit is contained in:
18
vendor/react/promise/tests/fixtures/SimpleTestCancellableThenable.php
vendored
Executable file
18
vendor/react/promise/tests/fixtures/SimpleTestCancellableThenable.php
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user