merge() public method

Merges in the array data into the field object json
public merge ( array $input ) : void
$input array
return void
Example #1
0
 public function test_it_merges_data()
 {
     $obj = new LiveFieldValue('{}', 12, 'field');
     $obj->merge(['one' => 'two', 'buckle' => 'my shoe']);
     assertEquals('{"one":"two","buckle":"my shoe"}', $obj->toJSON());
 }