Skip to content

Commit eb991bf

Browse files
committed
GenericOperationInterface documentation
1 parent 6337625 commit eb991bf

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

src/Node/GenericOperationInterface.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,39 @@
22

33
namespace React\Filesystem\Node;
44

5+
use React\Filesystem\AdapterInterface;
6+
use React\Promise\PromiseInterface;
7+
58
interface GenericOperationInterface
69
{
710
/**
8-
* @return \React\Filesystem\AdapterInterface
11+
* Return the filesystem associated with this node
12+
*
13+
* @return AdapterInterface
914
*/
1015
public function getFilesystem();
1116

1217
/**
13-
* @return \React\Promise\PromiseInterface
18+
* Stat the node, returning information such as the file, c/m/a-time, mode, g/u-id, and more.
19+
*
20+
* @return PromiseInterface
1421
*/
1522
public function stat();
1623

1724
/**
25+
* Change the node mode
26+
*
1827
* @param int $mode
19-
* @return \React\Promise\PromiseInterface
28+
* @return PromiseInterface
2029
*/
2130
public function chmod($mode);
2231

2332
/**
33+
* Change the owner of the node
34+
*
2435
* @param int $uid
2536
* @param int $gid
26-
* @return \React\Promise\PromiseInterface
37+
* @return PromiseInterface
2738
*/
2839
public function chown($uid = -1, $gid = -1);
2940
}

0 commit comments

Comments
 (0)