Model/Genders.php
public static function getLabel($constant, $long = false)
    {
        static::isValid($constant, true);

        return static::getConfig()[$constant][$long ? 1 : 0];
    }
public static function getLabel($constant, $long = false)
    {
        static::isValid($constant, true);

        return static::getConfig()[$constant][$long ? 1 : 0];
    }
public static function getLabel ( $ constant , $ long = false ) { static :: isValid ( $ constant , true ) ; return static :: getConfig ( ) [ $ constant ] [ $ long ? 1 : 0 ] ; }
Returns the label for the given constant.

@param mixed $constant
@param bool  $long
@return string
Returns the label for the given constant .