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