src/ValueObject/Size.php
public function getWidth($withUnit = false)
    {
        if ($withUnit) {
            return sprintf('%d %s', $this->width, $this->unit);
        }

        return $this->width;
    }
public function getWidth($withUnit = false)
    {
        if ($withUnit) {
            return sprintf('%d %s', $this->width, $this->unit);
        }

        return $this->width;
    }
public function getWidth ( $ withUnit = false ) { if ( $ withUnit ) { return sprintf ( '%d %s' , $ this -> width , $ this -> unit ) ; } return $ this -> width ; }
Returns the width

@param bool $withUnit (optional) If is set to true, width is returned with unit ("px"). Otherwise - without
(default behaviour).
@return int|string
Returns the width