override() public method

Overrides this data with the new input array
public override ( array $input ) : void
$input array
return void
Example #1
0
 public function test_it_can_overrides()
 {
     $obj = new LiveFieldValue('{"zero": ""}', 12, 'field');
     $obj->override(['one' => 'two', 'buckle' => 'my shoe']);
     assertEquals('{"one":"two","buckle":"my shoe"}', $obj->toJSON());
 }