File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,29 +37,9 @@ public function __construct() {
3737 $ this ->addType ('rowId ' , 'integer ' );
3838 }
3939
40- /**
41- * Same as Entity::fromRow but ignoring unknown properties
42- */
43- public static function fromRowData (array $ row ): RowCellSuper {
44- $ instance = new static ();
45-
46- foreach ($ row as $ key => $ value ) {
47- $ property = $ instance ->columnToProperty ($ key );
48- $ setter = 'set ' . ucfirst ($ property );
49- ;
50- if (property_exists ($ instance , $ property )) {
51- $ instance ->$ setter ($ value );
52- }
53- }
54-
55- $ instance ->resetUpdatedFields ();
56-
57- return $ instance ;
58- }
59-
6040 /**
6141 * @param float|null|string $value
62- * @param int $value_type
42+ * @param int $valueType
6343 */
6444 public function jsonSerializePreparation (string |float |null $ value , int $ valueType = 0 ): array {
6545 return [
You can’t perform that action at this time.
0 commit comments