Skip to content

Commit 9c5bc77

Browse files
committed
Added constructor for SetOperation.
Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
1 parent 276b252 commit 9c5bc77

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Components/SetOperation.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ class SetOperation extends Component
3434
*/
3535
public $value;
3636

37+
/**
38+
* Constructor.
39+
*
40+
* @param string $column Field's name..
41+
* @param string $value New value.
42+
*/
43+
public function __construct($column = null, $value = null)
44+
{
45+
$this->column = $column;
46+
$this->value = $value;
47+
}
48+
3749
/**
3850
* @param Parser $parser the parser that serves as context
3951
* @param TokensList $list the list of tokens that are being parsed

0 commit comments

Comments
 (0)