public static function getLabel($value)
    {
        $list = static::$list;

        if (isset($list[$value])) {
            return Yii::t(static::$messageCategory, $list[$value]);
        }

        return null;
    }
public static function getLabel($value)
    {
        $list = static::$list;

        if (isset($list[$value])) {
            return Yii::t(static::$messageCategory, $list[$value]);
        }

        return null;
    }
public static function getLabel ( $ value ) { $ list = static :: $ list ; if ( isset ( $ list [ $ value ] ) ) { return Yii :: t ( static :: $ messageCategory , $ list [ $ value ] ) ; } return null ; }
Get label by value

@var string value

@return string label
Get label by value