Todaymade\Daux\Tree\Directory::removeChild PHP 메소드

removeChild() 공개 메소드

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

Usage Example

예제 #1
0
파일: Entry.php 프로젝트: rlugojr/daux.io
 /**
  * @param Directory $parent
  */
 protected function setParent(Directory $parent)
 {
     if ($this->parent) {
         $this->parent->removeChild($this);
     }
     $parent->addChild($this);
     $this->parent = $parent;
 }