final private static function getMemberInstance($enumeration, $member)
    {
        if (! isset(self::$instances[$enumeration]) ||
            ! isset(self::$instances[$enumeration][$member])
        ) {
            // Instance of this enumeration member does not exist yet - let's create one
            self::$instances[$enumeration][$member] =
                new $enumeration($member, static::getValue($member));
        }

        return self::$instances[$enumeration][$member];
    }
final private static function getMemberInstance($enumeration, $member)
    {
        if (! isset(self::$instances[$enumeration]) ||
            ! isset(self::$instances[$enumeration][$member])
        ) {
            // Instance of this enumeration member does not exist yet - let's create one
            self::$instances[$enumeration][$member] =
                new $enumeration($member, static::getValue($member));
        }

        return self::$instances[$enumeration][$member];
    }
final private static function getMemberInstance ( $ enumeration , $ member ) { if ( ! isset ( self :: $ instances [ $ enumeration ] ) || ! isset ( self :: $ instances [ $ enumeration ] [ $ member ] ) ) { // Instance of this enumeration member does not exist yet - let's create one self :: $ instances [ $ enumeration ] [ $ member ] = new $ enumeration ( $ member , static :: getValue ( $ member ) ) ; } return self :: $ instances [ $ enumeration ] [ $ member ] ; }
Factory for enumeration members' instance representations

@param     string        $enumeration    The class for which the instance should be obtained
@param     string        $member         The enumerated member's name to retrieve
@return    Enumeration   An instance of Enumeration, representing the given member's value
Factory for enumeration members instance representations