Pimcore\Model\Asset\Folder::setChildren PHP Method

setChildren() public method

set the children of the document
public setChildren ( $children ) : array
return array
    public function setChildren($children)
    {
        $this->childs = $children;
        if (is_array($children) and count($children > 0)) {
            $this->hasChilds = true;
        } else {
            $this->hasChilds = false;
        }
        return $this;
    }