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