public function setImage(
            string $url,
            string $description,
            int $width = 88,
            int $height = 31
    ): self {
        if (144 < $width || 0 > $width) {
            throw new \InvalidArgumentException('Width must be a value between 0 and 144.');
        }

        if (400 < $height || 0 > $height) {
            throw new \InvalidArgumentException('Height must be a value between 0 and 400.');
        }

        $this->image = [
                'url'         => $url,
                'description' => $description,
                'width'       => $width,
                'height'      => $height
        ];
        return $this;
    }
public function setImage(
            string $url,
            string $description,
            int $width = 88,
            int $height = 31
    ): self {
        if (144 < $width || 0 > $width) {
            throw new \InvalidArgumentException('Width must be a value between 0 and 144.');
        }

        if (400 < $height || 0 > $height) {
            throw new \InvalidArgumentException('Height must be a value between 0 and 400.');
        }

        $this->image = [
                'url'         => $url,
                'description' => $description,
                'width'       => $width,
                'height'      => $height
        ];
        return $this;
    }
public function setImage ( string $ url , string $ description , int $ width = 88 , int $ height = 31 ) : self { if ( 144 < $ width || 0 > $ width ) { throw new \ InvalidArgumentException ( 'Width must be a value between 0 and 144.' ) ; } if ( 400 < $ height || 0 > $ height ) { throw new \ InvalidArgumentException ( 'Height must be a value between 0 and 400.' ) ; } $ this -> image = [ 'url' => $ url , 'description' => $ description , 'width' => $ width , 'height' => $ height ] ; return $ this ; }
specify a GIF, JPEG or PNG image to be displayed with the channel

@param   string  $url          URL of a GIF, JPEG or PNG image that represents the channel
@param   string  $description  contains text that is included in the TITLE attribute of the link formed around the image in the HTML rendering
@param   int     $width        indicating the width of the image in pixels, must be 0 < $width <= 144, default 88
@param   int     $height       indicating the height of the image in pixels, must be 0 < $height <= 400, default 31
@return  \stubbles\xml\rss\RssFeed
@throws  \InvalidArgumentException  in case $width or $height have invalid values
specify a GIF JPEG or PNG image to be displayed with the channel