public function init(array $args = [])
    {
        $args += ['total' => 100, 'width' => 80];
        $this->_progress = 0;
        $this->_width = $args['width'];
        $this->_total = $args['total'];

        return $this;
    }
public function init(array $args = [])
    {
        $args += ['total' => 100, 'width' => 80];
        $this->_progress = 0;
        $this->_width = $args['width'];
        $this->_total = $args['total'];

        return $this;
    }
public function init ( array $ args = [ ] ) { $ args += [ 'total' => 100 , 'width' => 80 ] ; $ this -> _progress = 0 ; $ this -> _width = $ args [ 'width' ] ; $ this -> _total = $ args [ 'total' ] ; return $ this ; }
Initialize the progress bar for use.

- `total` The total number of items in the progress bar. Defaults
to 100.
- `width` The width of the progress bar. Defaults to 80.

@param array $args The initialization data.
@return $this
Initialize the progress bar for use .