public function setHeight($height)
    {
        if (!is_null($height)) {
            if (intval($height) < 0) {
                throw new \InvalidArgumentException(sprintf('Invalid height: %d', $height));
            }

            $this->height = $height;
        } else {
            $this->height = null;
        }

        return $this;
    }
public function setHeight($height)
    {
        if (!is_null($height)) {
            if (intval($height) < 0) {
                throw new \InvalidArgumentException(sprintf('Invalid height: %d', $height));
            }

            $this->height = $height;
        } else {
            $this->height = null;
        }

        return $this;
    }
public function setHeight ( $ height ) { if ( ! is_null ( $ height ) ) { if ( intval ( $ height ) < 0 ) { throw new \ InvalidArgumentException ( sprintf ( 'Invalid height: %d' , $ height ) ) ; } $ this -> height = $ height ; } else { $ this -> height = null ; } return $ this ; }
Sets height.

@param integer $height

@return FeedImage

@throws \InvalidArgumentException
Sets height .