@@ 1039-1048 (lines=10) @@ | ||
1036 | return $this->increment($fieldName, -1 * $value); |
|
1037 | } |
|
1038 | ||
1039 | public function bitwiceAnd($field, $value) |
|
1040 | { |
|
1041 | parent::set($field, (int) $this->get($field) & $value); |
|
1042 | ||
1043 | if ($this->getId()) { |
|
1044 | $this->operator->bitwiceAnd($field, $value); |
|
1045 | } |
|
1046 | ||
1047 | return $this; |
|
1048 | } |
|
1049 | ||
1050 | public function bitwiceOr($field, $value) |
|
1051 | { |
|
@@ 1050-1059 (lines=10) @@ | ||
1047 | return $this; |
|
1048 | } |
|
1049 | ||
1050 | public function bitwiceOr($field, $value) |
|
1051 | { |
|
1052 | parent::set($field, (int) $this->get($field) | $value); |
|
1053 | ||
1054 | if ($this->getId()) { |
|
1055 | $this->operator->bitwiceOr($field, $value); |
|
1056 | } |
|
1057 | ||
1058 | return $this; |
|
1059 | } |
|
1060 | ||
1061 | public function bitwiceXor($field, $value) |
|
1062 | { |