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