merge() публичный Метод

Merges in the array data into the field object json
public merge ( array $input ) : void
$input array
Результат void
Пример #1
0
 public function test_it_merges_data()
 {
     $obj = new FieldValue('{}');
     $obj->merge(['one' => 'two', 'buckle' => 'my shoe']);
     assertEquals('{"one":"two","buckle":"my shoe"}', $obj->toJSON());
 }