public function removeChildren ()
  {
    $children       = $this->children;
    $this->children = [];
    if ($children)
      self::detachAll ($children);
    return $children;
  }
public function removeChildren ()
  {
    $children       = $this->children;
    $this->children = [];
    if ($children)
      self::detachAll ($children);
    return $children;
  }
public function removeChildren ( ) { $ children = $ this -> children ; $ this -> children = [ ] ; if ( $ children ) self :: detachAll ( $ children ) ; return $ children ; }
Removes, detaches and returns the component's children.
Removes detaches and returns the component s children .