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