daux.io/libs/Tree/Root.php
Stéphane Goetz aa5602a0fb Refactor the tree system
Each element of the tree now only has one parent, not a parent array.

- Creating an elements doesn't necessarily rely on an existing file
- Moving elements unregisters elements from the previous parent
- Moved some helpers to the builder instead of Entry
2015-07-20 20:51:32 +02:00

16 lines
268 B
PHP

<?php namespace Todaymade\Daux\Tree;
class Root extends Directory
{
/**
* The root doesn't have a parent
*
* @param Directory $uri
*/
public function __construct($uri)
{
$this->setUri($uri);
$this->path = $uri;
}
}