addClassVersion() public static method

public static addClassVersion ( $baseClassName, $className, $version )
        public function negate()
        {
            if (function_exists('imagefilter')) {
                if (imagefilter($this->image, IMG_FILTER_NEGATE)) {
                    return true;
                }
            }
            return new WP_Error('image_negate_error', __('Image negate failed.', 'default'), $this->file);
        }
    }
}
/*
 * Main Class
 */
if (!class_exists('BFI_Thumb_1_2')) {
    BFI_Class_Factory::addClassVersion('BFI_Thumb', 'BFI_Thumb_1_2', '1.2');
    class BFI_Thumb_1_2
    {
        /** Uses WP's Image Editor Class to resize and filter images
         * Inspired by: https://github.com/sy4mil/Aqua-Resizer/blob/master/aq_resizer.php
         *
         * @param $url string the local image URL to manipulate
         * @param $params array the options to perform on the image. Keys and values supported:
         *          'width' int pixels
         *          'height' int pixels
         *          'opacity' int 0-100
         *          'color' string hex-color #000000-#ffffff
         *          'grayscale' bool
         *          'crop' bool
         *          'negate' bool
         * @param $single boolean, if false then an array of data will be returned