@@ -38,34 +38,34 @@ class Payload implements \Stringable, Arrayable, Jsonable
3838 * Value before sanitizing.
3939 * @var mixed
4040 */
41- public mixed $ beforeSanitize ;
41+ public mixed $ rawValue ;
4242
4343 /**
4444 * Create new Payload instance.
4545 * @param string $field
4646 * @param string $operator
4747 * @param mixed $value
48- * @param mixed $beforeSanitize
48+ * @param mixed $rawValue
4949 */
50- public function __construct (string $ field , string $ operator , mixed $ value , mixed $ beforeSanitize )
50+ public function __construct (string $ field , string $ operator , mixed $ value , mixed $ rawValue )
5151 {
5252 $ this ->field = $ field ;
5353 $ this ->operator = $ operator ;
5454 $ this ->value = $ value ;
55- $ this ->beforeSanitize = $ beforeSanitize ;
55+ $ this ->rawValue = $ rawValue ;
5656 }
5757
5858 /**
5959 * Shortcut to create Payload instance.
6060 * @param mixed $field
6161 * @param mixed $operator
6262 * @param mixed $value
63- * @param mixed $beforeSanitize
63+ * @param mixed $rawValue
6464 * @return Payload
6565 */
66- public static function create ($ field , $ operator , $ value , $ beforeSanitize ): static
66+ public static function create ($ field , $ operator , $ value , $ rawValue ): static
6767 {
68- return new static ($ field , $ operator , $ value , $ beforeSanitize );
68+ return new static ($ field , $ operator , $ value , $ rawValue );
6969 }
7070
7171 /**
@@ -75,7 +75,7 @@ public static function create($field, $operator, $value, $beforeSanitize): stati
7575 */
7676 public function raw (): mixed
7777 {
78- return $ this ->beforeSanitize ;
78+ return $ this ->rawValue ;
7979 }
8080
8181 /**
@@ -572,7 +572,7 @@ public function toArray()
572572 'field ' => $ this ->field ,
573573 'operator ' => $ this ->operator ,
574574 'value ' => $ this ->value ,
575- 'beforeSanitize ' => $ this ->beforeSanitize ,
575+ 'rawValue ' => $ this ->rawValue ,
576576 ];
577577 }
578578
0 commit comments