2 namespace wcf\system\option\user\group;
5 * InfiniteInverseIntegerUserGroupOptionType is an implementation of IUserGroupOptionType
7 * The merge of option values returns -1 if all values are -1 otherwise the lowest value.
10 * @copyright 2001-2012 WoltLab GmbH
11 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
12 * @package com.woltlab.wcf
13 * @subpackage system.option.user.group
14 * @category Community Framework
16 class InfiniteInverseIntegerUserGroupOptionType extends InverseIntegerUserGroupOptionType {
18 * @see wcf\system\option\user\group\IUserGroupOptionType::merge()
20 public function merge($defaultValue, $groupValue) {
21 if (($defaultValue == -1 && $groupValue == -1) || ($defaultValue == $groupValue)) {
25 return min($defaultValue, $groupValue);