| @@ 1023-1032 (lines=10) @@ | ||
| 1020 | return $this->increment($fieldName, -1 * $value); |
|
| 1021 | } |
|
| 1022 | ||
| 1023 | public function bitwiceAnd($field, $value) |
|
| 1024 | { |
|
| 1025 | parent::set($field, (int) $this->get($field) & $value); |
|
| 1026 | ||
| 1027 | if ($this->getId()) { |
|
| 1028 | $this->operator->bitwiceAnd($field, $value); |
|
| 1029 | } |
|
| 1030 | ||
| 1031 | return $this; |
|
| 1032 | } |
|
| 1033 | ||
| 1034 | public function bitwiceOr($field, $value) |
|
| 1035 | { |
|
| @@ 1034-1043 (lines=10) @@ | ||
| 1031 | return $this; |
|
| 1032 | } |
|
| 1033 | ||
| 1034 | public function bitwiceOr($field, $value) |
|
| 1035 | { |
|
| 1036 | parent::set($field, (int) $this->get($field) | $value); |
|
| 1037 | ||
| 1038 | if ($this->getId()) { |
|
| 1039 | $this->operator->bitwiceOr($field, $value); |
|
| 1040 | } |
|
| 1041 | ||
| 1042 | return $this; |
|
| 1043 | } |
|
| 1044 | ||
| 1045 | public function bitwiceXor($field, $value) |
|
| 1046 | { |
|