protected function setChildren(Block $block)
    {
        if (method_exists($block, 'setChildren')) {
            $children = $this->environment->getBlockChildren($block);
            $block->setChildren($children);
        }
    }
protected function setChildren(Block $block)
    {
        if (method_exists($block, 'setChildren')) {
            $children = $this->environment->getBlockChildren($block);
            $block->setChildren($children);
        }
    }
protected function setChildren ( Block $ block ) { if ( method_exists ( $ block , 'setChildren' ) ) { $ children = $ this -> environment -> getBlockChildren ( $ block ) ; $ block -> setChildren ( $ children ) ; } }
Maps the block children from the environment to the block

@param Block $block
Maps the block children from the environment to the block