| 1 |
# parent |
| 2 |
|
| 3 |
```php |
| 4 |
parent ( [ object $parent = null ] ) : object |
| 5 |
``` |
| 6 |
|
| 7 |
| Parameter | Description |
| 8 |
| --------- | ----------- |
| 9 |
| `parent` | The parent node |
| 10 |
|
| 11 |
* Returns the parent node of the current node if `$parent` is null. |
| 12 |
* Sets the parent node of the current node if `$parent` is not null. In this case the current node is automatically added to the list of nodes in the parent node. |