@@ -6,19 +6,19 @@ abstract class Condition implements Rule, MetaDataProvider
66{
77 use MetaData;
88
9- /** @var string */
10- protected $ column ;
9+ /** @var string|string[] */
10+ protected string | array $ column = [] ;
1111
1212 /** @var mixed */
13- protected $ value ;
13+ protected mixed $ value = null ;
1414
1515 /**
1616 * Create a new Condition
1717 *
18- * @param string $column
18+ * @param string|string[] $column
1919 * @param mixed $value
2020 */
21- public function __construct (string $ column , mixed $ value )
21+ public function __construct (string | array $ column , mixed $ value )
2222 {
2323 $ this ->setColumn ($ column )
2424 ->setValue ($ value );
@@ -37,11 +37,11 @@ public function __clone()
3737 /**
3838 * Set this condition's column
3939 *
40- * @param string $column
40+ * @param string|string[] $column
4141 *
4242 * @return $this
4343 */
44- public function setColumn ($ column ): static
44+ public function setColumn (string | array $ column ): static
4545 {
4646 $ this ->column = $ column ;
4747
@@ -51,9 +51,9 @@ public function setColumn($column): static
5151 /**
5252 * Get this condition's column
5353 *
54- * @return string
54+ * @return string|string[]
5555 */
56- public function getColumn ()
56+ public function getColumn (): string | array
5757 {
5858 return $ this ->column ;
5959 }
@@ -65,7 +65,7 @@ public function getColumn()
6565 *
6666 * @return $this
6767 */
68- public function setValue ($ value ): static
68+ public function setValue (mixed $ value ): static
6969 {
7070 $ this ->value = $ value ;
7171
@@ -77,7 +77,7 @@ public function setValue($value): static
7777 *
7878 * @return mixed
7979 */
80- public function getValue ()
80+ public function getValue (): mixed
8181 {
8282 return $ this ->value ;
8383 }
0 commit comments