@@ 1066-1075 (lines=10) @@ | ||
1063 | return $this->increment($fieldName, -1 * $value); |
|
1064 | } |
|
1065 | ||
1066 | public function bitwiceAnd($field, $value) |
|
1067 | { |
|
1068 | parent::set($field, (int) $this->get($field) & $value); |
|
1069 | ||
1070 | if ($this->getId()) { |
|
1071 | $this->operator->bitwiceAnd($field, $value); |
|
1072 | } |
|
1073 | ||
1074 | return $this; |
|
1075 | } |
|
1076 | ||
1077 | public function bitwiceOr($field, $value) |
|
1078 | { |
|
@@ 1077-1086 (lines=10) @@ | ||
1074 | return $this; |
|
1075 | } |
|
1076 | ||
1077 | public function bitwiceOr($field, $value) |
|
1078 | { |
|
1079 | parent::set($field, (int) $this->get($field) | $value); |
|
1080 | ||
1081 | if ($this->getId()) { |
|
1082 | $this->operator->bitwiceOr($field, $value); |
|
1083 | } |
|
1084 | ||
1085 | return $this; |
|
1086 | } |
|
1087 | ||
1088 | public function bitwiceXor($field, $value) |
|
1089 | { |