FossilOrigin-Name: 89fbd7a1520ecb65809b4c1bd10006ce9bb3a662cb7e7804abaf85d1ee1da63a
24 lines
568 B
Objective-C
24 lines
568 B
Objective-C
#import "Alias.h"
|
|
|
|
@implementation Alias
|
|
+ (instancetype)aliasWithName:(OFString *)name
|
|
action:(OFString *)action
|
|
persisted:(bool)persisted;
|
|
{
|
|
return [[self alloc] initWithName:name
|
|
action:action
|
|
persisted:persisted];
|
|
}
|
|
|
|
- (instancetype)initWithName:(OFString *)name
|
|
action:(OFString *)action
|
|
persisted:(bool)persisted
|
|
{
|
|
self = [super initWithName:name];
|
|
|
|
_action = [action copy];
|
|
_persisted = persisted;
|
|
|
|
return self;
|
|
}
|
|
@end
|