1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-26 00:32:41 +01:00
phorge-arcanist/src/internationalization/PhutilNumber.php
epriestley 9b74cb4ee6 Fully merge "libphutil/" into "arcanist/"
Summary: Ref T13395. Moves all remaining code in "libphutil/" into "arcanist/".

Test Plan: Ran various arc workflows, although this probably has some remaining rough edges.

Maniphest Tasks: T13395

Differential Revision: https://secure.phabricator.com/D20980
2020-02-12 15:17:38 -08:00

26 lines
446 B
PHP

<?php
final class PhutilNumber extends Phobject {
private $value;
private $decimals = 0;
public function __construct($value, $decimals = 0) {
$this->value = $value;
$this->decimals = $decimals;
}
public function getNumber() {
return $this->value;
}
public function setDecimals($decimals) {
$this->decimals = $decimals;
return $this;
}
public function getDecimals() {
return $this->decimals;
}
}