| @@ 946-955 (lines=10) @@ | ||
| 943 | return $this->increment($fieldName, -1 * $value); |
|
| 944 | } |
|
| 945 | ||
| 946 | public function bitwiceAnd($field, $value) |
|
| 947 | { |
|
| 948 | parent::set($field, (int) $this->get($field) & $value); |
|
| 949 | ||
| 950 | if ($this->getId()) { |
|
| 951 | $this->operator->bitwiceAnd($field, $value); |
|
| 952 | } |
|
| 953 | ||
| 954 | return $this; |
|
| 955 | } |
|
| 956 | ||
| 957 | public function bitwiceOr($field, $value) |
|
| 958 | { |
|
| @@ 957-966 (lines=10) @@ | ||
| 954 | return $this; |
|
| 955 | } |
|
| 956 | ||
| 957 | public function bitwiceOr($field, $value) |
|
| 958 | { |
|
| 959 | parent::set($field, (int) $this->get($field) | $value); |
|
| 960 | ||
| 961 | if ($this->getId()) { |
|
| 962 | $this->operator->bitwiceOr($field, $value); |
|
| 963 | } |
|
| 964 | ||
| 965 | return $this; |
|
| 966 | } |
|
| 967 | ||
| 968 | public function bitwiceXor($field, $value) |
|
| 969 | { |
|