Skip to content
  • This project
    • Loading...
  • Sign in

Tenzing / banners-with-skip

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • banners-with-skip
  • vendor
  • react
  • promise
  • tests
  • fixtures
  • SimpleTestCancellableThenable.php
  • Jeff Balicki's avatar
    Revert "Revert "google oauth"" · cf7a1676 ...
    cf7a1676
    This reverts commit a4f2f371.
    Jeff Balicki committed 2017-01-12 17:52:42 -0500
SimpleTestCancellableThenable.php 338 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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;
    }
}