public function setWidth($width)
    {
        if (!is_numeric($width))
        {
            throw new InvalidDataException('Invalid width value');
        }

        $this->width = (int) $width;

        return $this;
    }
public function setWidth($width)
    {
        if (!is_numeric($width))
        {
            throw new InvalidDataException('Invalid width value');
        }

        $this->width = (int) $width;

        return $this;
    }
public function setWidth ( $ width ) { if ( ! is_numeric ( $ width ) ) { throw new InvalidDataException ( 'Invalid width value' ) ; } $ this -> width = ( int ) $ width ; return $ this ; }
Set width for viewport and shot

@param $width
@return $this
@throws InvalidDataException
Set width for viewport and shot