Skip to content

Commit 4412836

Browse files
committed
Added constructor for AlterOperation.
Signed-off-by: Dan Ungureanu <[email protected]>
1 parent e05c466 commit 4412836

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/Components/AlterOperation.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,23 @@ class AlterOperation extends Component
116116
*/
117117
public $unknown = array();
118118

119+
/**
120+
* Constructor.
121+
*
122+
* @param OptionsArray $options options of alter operation
123+
* @param Expression $field altered field
124+
* @param array $unknown unparsed tokens found at the end of operation
125+
*/
126+
public function __construct(
127+
$options = null,
128+
$field = null,
129+
$unknown = array()
130+
) {
131+
$this->options = $options;
132+
$this->field = $field;
133+
$this->unknown = $unknown;
134+
}
135+
119136
/**
120137
* @param Parser $parser the parser that serves as context
121138
* @param TokensList $list the list of tokens that are being parsed

0 commit comments

Comments
 (0)