/*
* This file is part of the YSSDWebImage package.
* (c) Olivier Poitrey <rs@dailymotion.com>
* (c) Fabrice Aneche
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

#import "UIImage+YSExtendedCacheData.h"
#import <objc/runtime.h>

@implementation UIImage (YSExtendedCacheData)

- (id<NSObject, NSCoding>)yssd_extendedObject {
    return objc_getAssociatedObject(self, @selector(yssd_extendedObject));
}

- (void)setYssd_extendedObject:(id<NSObject, NSCoding>)yssd_extendedObject {
    objc_setAssociatedObject(self, @selector(yssd_extendedObject), yssd_extendedObject, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

@end
