This method is required for serializing the object and SHOULD NOT be accessed directly.
@internal
array{value: string, scale: int}
public function __serialize() : array { return [ 'value' => $this->value, 'scale' => $this->scale, ]; }