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