public function isImage(): bool
    {
        return is_resource($this->content) && in_array($this->contentType, [
            self::CONTENT_TYPE_IMAGE_JPEG, self::CONTENT_TYPE_IMAGE_PNG, self::CONTENT_TYPE_IMAGE_GIF,
        ]);
    }
public function isImage(): bool
    {
        return is_resource($this->content) && in_array($this->contentType, [
            self::CONTENT_TYPE_IMAGE_JPEG, self::CONTENT_TYPE_IMAGE_PNG, self::CONTENT_TYPE_IMAGE_GIF,
        ]);
    }
public function isImage ( ) : bool { return is_resource ( $ this -> content ) && in_array ( $ this -> contentType , [ self :: CONTENT_TYPE_IMAGE_JPEG , self :: CONTENT_TYPE_IMAGE_PNG , self :: CONTENT_TYPE_IMAGE_GIF , ] ) ; }
Is image.
@return bool
@since  3.9
Is image .