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;
    }