| @@ 1175-1184 (lines=10) @@ | ||
| 1172 | return $this->increment($fieldName, -1 * $value); |
|
| 1173 | } |
|
| 1174 | ||
| 1175 | public function bitwiceAnd($field, $value) |
|
| 1176 | { |
|
| 1177 | parent::set($field, (int) $this->get($field) & $value); |
|
| 1178 | ||
| 1179 | if ($this->getId()) { |
|
| 1180 | $this->operator->bitwiceAnd($field, $value); |
|
| 1181 | } |
|
| 1182 | ||
| 1183 | return $this; |
|
| 1184 | } |
|
| 1185 | ||
| 1186 | public function bitwiceOr($field, $value) |
|
| 1187 | { |
|
| @@ 1186-1195 (lines=10) @@ | ||
| 1183 | return $this; |
|
| 1184 | } |
|
| 1185 | ||
| 1186 | public function bitwiceOr($field, $value) |
|
| 1187 | { |
|
| 1188 | parent::set($field, (int) $this->get($field) | $value); |
|
| 1189 | ||
| 1190 | if ($this->getId()) { |
|
| 1191 | $this->operator->bitwiceOr($field, $value); |
|
| 1192 | } |
|
| 1193 | ||
| 1194 | return $this; |
|
| 1195 | } |
|
| 1196 | ||
| 1197 | public function bitwiceXor($field, $value) |
|
| 1198 | { |
|