public function addVar(array $varConfig, $append = false)
    {
        $count = count($this->_vars);
        $iteration = $append ? $count + 1000 : $count;
        $this->_vars[$iteration] = (new BlockVar($varConfig))->toArray();
    }
public function addVar(array $varConfig, $append = false)
    {
        $count = count($this->_vars);
        $iteration = $append ? $count + 1000 : $count;
        $this->_vars[$iteration] = (new BlockVar($varConfig))->toArray();
    }
public function addVar ( array $ varConfig , $ append = false ) { $ count = count ( $ this -> _vars ) ; $ iteration = $ append ? $ count + 1000 : $ count ; $ this -> _vars [ $ iteration ] = ( new BlockVar ( $ varConfig ) ) -> toArray ( ) ; }
Add a var variable to the config.

@param array $varConfig
@param boolean Whether the variable should be append to the end instead of prepanding.
Add a var variable to the config .