@@ 62-75 (lines=14) @@ | ||
59 | * @param Operand|string $field |
|
60 | * @param Operand|string $value |
|
61 | */ |
|
62 | public function __construct($operation, $field, $value) |
|
63 | { |
|
64 | if (!in_array($operation, self::$operations)) { |
|
65 | throw new InvalidArgumentException(sprintf( |
|
66 | '"%s" is not a valid arithmetic operation. Valid operations are: "%s"', |
|
67 | $operation, |
|
68 | implode(', ', self::$operations) |
|
69 | )); |
|
70 | } |
|
71 | ||
72 | $this->operation = $operation; |
|
73 | $this->field = $field; |
|
74 | $this->value = $value; |
|
75 | } |
|
76 | ||
77 | /** |
|
78 | * @param QueryBuilder $qb |
@@ 64-77 (lines=14) @@ | ||
61 | * @param Operand|string $field |
|
62 | * @param Operand|string $value |
|
63 | */ |
|
64 | public function __construct($operation, $field, $value) |
|
65 | { |
|
66 | if (!in_array($operation, self::$operations, true)) { |
|
67 | throw new InvalidArgumentException(sprintf( |
|
68 | '"%s" is not a valid bitwise operation. Valid operations are: "%s"', |
|
69 | $operation, |
|
70 | implode(', ', self::$operations) |
|
71 | )); |
|
72 | } |
|
73 | ||
74 | $this->operation = $operation; |
|
75 | $this->field = $field; |
|
76 | $this->value = $value; |
|
77 | } |
|
78 | ||
79 | /** |
|
80 | * @param QueryBuilder $qb |