class OpenCReport\Result { public final free(): void; public final copy( OpenCReport\Result $src_result): void; public final print(): void; public final get_type(): long; public final is_null(): bool; public final is_string(): bool; public final is_number(): bool; public final get_string(): ?string; public final get_number(?string $format): ?string; }
Only use it for separately created
result objects, like via
OpenCReport::env_get()
and
OpenCReport::result_new()
.
Not needed for freeing an expression.
public final OpenCReport\Result::free(): void;
Used by unit tests.
public final OpenCReport\Result::copy( OpenCReport\Result $src_result): void;
Useful for user functions.
public final OpenCReport\Result::get_type(): long;
Useful for user functions.
public final OpenCReport\Result::is_null(): bool;
Useful for user functions.
public final OpenCReport\Result::is_string(): bool;
Useful for user functions.
public final OpenCReport\Result::is_number(): bool;
Useful for user functions.
public final OpenCReport\Result::get_string(): ?string;
Useful for user functions.
The method may optionally use a format string
to specify the number of decimal digits.
See MPFR format strings.
The returned value may be used with
BC Math
in PHP or (if the precision is small enough)
converted to double
or
long
.
public final OpenCReport\Result::get_number(?string $format): ?string;