Skip to content

Commit e60e41a

Browse files
committed
CallInvoker documentation
1 parent 43768d6 commit e60e41a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/CallInvokerInterface.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace React\Filesystem;
44

5+
use React\Promise\PromiseInterface;
6+
57
interface CallInvokerInterface
68
{
79
/**
@@ -10,14 +12,20 @@ interface CallInvokerInterface
1012
public function __construct(AdapterInterface $adapter);
1113

1214
/**
15+
* Call the given $function with the given $args,
16+
* when appropriate for the concrete invoker.
17+
*
1318
* @param string $function
1419
* @param array $args
1520
* @param int $errorResultCode
16-
* @return \React\Promise\ExtendedPromiseInterface
21+
* @return PromiseInterface
1722
*/
1823
public function invokeCall($function, $args, $errorResultCode = -1);
1924

2025
/**
26+
* Return true when no calls are waiting to be called,
27+
* otherwise return false.
28+
*
2129
* @return bool
2230
*/
2331
public function isEmpty();

0 commit comments

Comments
 (0)