File "SimpleTestCancellableThenable.php"

Full path: /home/cakedeco/retaildirectonline.co.uk/system/storage/vendor/react/promise/tests/fixtures/SimpleTestCancellableThenable.php
File size: 338 B (338 B bytes)
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor &nnbsp; Back

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