public function removeChildren(array $items): bool
    {
        if ($this->_item !== null) {
            foreach ($items as $name) {
                $child = $this->manager->getPermission($name);
                if (empty($child) && $this->type == Item::TYPE_ROLE) {
                    $child = $this->manager->getRole($name);
                }
                $this->manager->removeChild($this->_item, $child);
            }
        }

        return true;
    }
public function removeChildren(array $items): bool
    {
        if ($this->_item !== null) {
            foreach ($items as $name) {
                $child = $this->manager->getPermission($name);
                if (empty($child) && $this->type == Item::TYPE_ROLE) {
                    $child = $this->manager->getRole($name);
                }
                $this->manager->removeChild($this->_item, $child);
            }
        }

        return true;
    }
public function removeChildren ( array $ items ) : bool { if ( $ this -> _item !== null ) { foreach ( $ items as $ name ) { $ child = $ this -> manager -> getPermission ( $ name ) ; if ( empty ( $ child ) && $ this -> type == Item :: TYPE_ROLE ) { $ child = $ this -> manager -> getRole ( $ name ) ; } $ this -> manager -> removeChild ( $ this -> _item , $ child ) ; } } return true ; }
Remove child from an item

@param array $items

@return bool
Remove child from an item