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