Skip to content

Commit 6337625

Browse files
committed
NodeInterface documentation
1 parent bf1097e commit 6337625

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/Node/NodeInterface.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,45 @@ interface NodeInterface extends GenericOperationInterface
1010
const DS = DIRECTORY_SEPARATOR;
1111

1212
/**
13+
* Alias for getPath()
14+
*
1315
* @return string
1416
*/
1517
public function __toString();
1618

1719
/**
20+
* Return the parent node, or null if this is already the top node.
21+
*
1822
* @return NodeInterface|null
1923
*/
2024
public function getParent();
2125

2226
/**
27+
* Return the full path, for example: /path/to/file.ext
28+
*
2329
* @return string
2430
*/
2531
public function getPath();
2632

2733
/**
34+
* Return the node name, for example: file.ext
35+
*
2836
* @return string
2937
*/
3038
public function getName();
3139

3240
/**
41+
* Copy this node to the given node, returning the all results when done.
42+
*
3343
* @param NodeInterface $node
3444
* @return PromiseInterface
3545
*/
3646
public function copy(NodeInterface $node);
3747

3848
/**
49+
* Copy this node to the given node streaming. The returned object is a stream,
50+
* that emits events for each copy node during this operation.
51+
*
3952
* @param NodeInterface $node
4053
* @return ObjectStream
4154
*/

0 commit comments

Comments
 (0)