public static function getValueName($value, $strict = false)
    {
        if (!static::isValidValue($value)) {
            throw new \InvalidArgumentException('No enum name was found for the value supplied.');
        }

        return array_search($value, static::$constants, $strict);
    }
public static function getValueName($value, $strict = false)
    {
        if (!static::isValidValue($value)) {
            throw new \InvalidArgumentException('No enum name was found for the value supplied.');
        }

        return array_search($value, static::$constants, $strict);
    }
public static function getValueName ( $ value , $ strict = false ) { if ( ! static :: isValidValue ( $ value ) ) { throw new \ InvalidArgumentException ( 'No enum name was found for the value supplied.' ) ; } return array_search ( $ value , static :: $ constants , $ strict ) ; }
Get the enum name from its value.

@param mixed $value
@param bool $strict
@return string
Get the enum name from its value .