src/AbstractConstant.php
final public static function membersToBitmask($members)
    {
        $mask = 0;
        foreach ($members as $member) {
            if (!is_integer($member->value())) {
                throw new Exception\NonIntegerValueException($member->value());
            }

            $mask |= $member->value();
        }

        return $mask;
    }
final public static function membersToBitmask($members)
    {
        $mask = 0;
        foreach ($members as $member) {
            if (!is_integer($member->value())) {
                throw new Exception\NonIntegerValueException($member->value());
            }

            $mask |= $member->value();
        }

        return $mask;
    }
final public static function membersToBitmask ( $ members ) { $ mask = 0 ; foreach ( $ members as $ member ) { if ( ! is_integer ( $ member -> value ( ) ) ) { throw new Exception \ NonIntegerValueException ( $ member -> value ( ) ) ; } $ mask |= $ member -> value ( ) ; } return $ mask ; }
Generates a bitmask representing the suppled members.

@param mixed<ConstantInterface> $members The members to create a bitmask for.

@return integer                            The bitmask representing the supplied members.
@throws Exception\NonIntegerValueException If any member's value is a non-integer.
Generates a bitmask representing the suppled members .