public function setAddChildrenIfNoneSet($children = array('defaults'))
    {
        if (null === $children) {
            $this->defaultChildren = array('defaults');
        } else {
            $this->defaultChildren = is_int($children) && $children > 0 ? range(1, $children) : (array) $children;
        }
    }
public function setAddChildrenIfNoneSet($children = array('defaults'))
    {
        if (null === $children) {
            $this->defaultChildren = array('defaults');
        } else {
            $this->defaultChildren = is_int($children) && $children > 0 ? range(1, $children) : (array) $children;
        }
    }
public function setAddChildrenIfNoneSet ( $ children = array ( 'defaults' ) ) { if ( null === $ children ) { $ this -> defaultChildren = array ( 'defaults' ) ; } else { $ this -> defaultChildren = is_int ( $ children ) && $ children > 0 ? range ( 1 , $ children ) : ( array ) $ children ; } }
Adds default children when none are set.

@param int|string|array|null $children The number of children|The child name|The children names to be added
Adds default children when none are set .