Represents a fraction in terms of a numerator divided by a denominator.
Generated from protobuf message google.type.Fraction
Methods |
public __construct( $data = NULL) Constructor.
|
public getDenominator() The value by which the numerator is divided, e.g. 3 in 2/3. Must be positive. Generated from protobuf field int64 denominator = 2;
|
public getNumerator() The numerator in the fraction, e.g. 2 in 2/3. Generated from protobuf field int64 numerator = 1;
|
public setDenominator( $var) The value by which the numerator is divided, e.g. 3 in 2/3. Must be positive. Generated from protobuf field int64 denominator = 2;
|
public setNumerator( $var) The numerator in the fraction, e.g. 2 in 2/3. Generated from protobuf field int64 numerator = 1;
|
Properties |
protected $denominator = 0 The value by which the numerator is divided, e.g. 3 in 2/3. Must be positive. Generated from protobuf field int64 denominator = 2; |
protected $numerator = 0 The numerator in the fraction, e.g. 2 in 2/3. Generated from protobuf field int64 numerator = 1; |
Methods |