Todaymade\Daux\Tree\Directory::removeChild PHP Method

removeChild() public method

public removeChild ( Entry $entry )
$entry Entry
    public function removeChild(Entry $entry)
    {
        unset($this->children[$entry->getUri()]);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @param Directory $parent
  */
 protected function setParent(Directory $parent)
 {
     if ($this->parent) {
         $this->parent->removeChild($this);
     }
     $parent->addChild($this);
     $this->parent = $parent;
 }