Releases: lfyw/lfyw-enum
Releases · lfyw/lfyw-enum
docs
rebuild
增加魔术方法静态调用
UserType::getDescriptionByValue($value):string
根据值获取注释
UserType::getDescriptionByName(string $name):string
根据名称获取注释
UserType::USER()
调用UserType::User->value
,如果不是回退枚举返回null
Full Changelog: 1.0.2...1.1.0
getDescriptionByValue
1.0.2 feat: getDescriptionByValue
build
first version
1.0.0 doc: dependencies