public function setWidth($width) {
        if (!is_numeric($width) || $width <= 0) {
            return;
        }
        if ($width > self::MAX_WIDTH) {
            $this->_width = self::MAX_WIDTH;
        } else {
            $this->_width = (int)$width;
        }
    }
public function setWidth($width) {
        if (!is_numeric($width) || $width <= 0) {
            return;
        }
        if ($width > self::MAX_WIDTH) {
            $this->_width = self::MAX_WIDTH;
        } else {
            $this->_width = (int)$width;
        }
    }
public function setWidth ( $ width ) { if ( ! is_numeric ( $ width ) || $ width <= 0 ) { return ; } if ( $ width > self :: MAX_WIDTH ) { $ this -> _width = self :: MAX_WIDTH ; } else { $ this -> _width = ( int ) $ width ; } }
Sets the width of the sparkline
@param int $width
Sets the width of the sparkline