PHP Class pthreads\Thenable

Inheritance: extends Promisable, implements pthreads\IThenable
Show file Open project: krakjoe/promises

Protected Properties

Property Type Description
$promise

Public Methods

Method Description
__construct ( Promise $promise )
getPromise ( )
onError ( Promisable $promised )
onFulfilled ( Promisable $promised )
run ( )

Method Details

__construct() public method

public __construct ( Promise $promise )
$promise Promise

getPromise() public method

public getPromise ( )

onError() public method

public onError ( Promisable $promised )
$promised Promisable

onFulfilled() public method

public onFulfilled ( Promisable $promised )
$promised Promisable

run() public method

public run ( )

Property Details

$promise protected property

protected $promise