public static function getCharacterSetEciByValue(int $value) : ?self
    {
        if ($value < 0 || $value >= 900) {
            throw new InvalidArgumentException('Value must be between 0 and 900');
        }

        $valueToEci = self::valueToEci();

        if (! array_key_exists($value, $valueToEci)) {
            return null;
        }

        return $valueToEci[$value];
    }
public static function getCharacterSetEciByValue(int $value) : ?self
    {
        if ($value < 0 || $value >= 900) {
            throw new InvalidArgumentException('Value must be between 0 and 900');
        }

        $valueToEci = self::valueToEci();

        if (! array_key_exists($value, $valueToEci)) {
            return null;
        }

        return $valueToEci[$value];
    }
public static function getCharacterSetEciByValue ( int $ value ) : ? self { if ( $ value < 0 || $ value >= 900 ) { throw new InvalidArgumentException ( 'Value must be between 0 and 900' ) ; } $ valueToEci = self :: valueToEci ( ) ; if ( ! array_key_exists ( $ value , $ valueToEci ) ) { return null ; } return $ valueToEci [ $ value ] ; }
Gets character set ECI by value.

Returns the representing ECI of a given value, or null if it is legal but unsupported.

@throws InvalidArgumentException if value is not between 0 and 900
Gets character set ECI by value .