mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +01:00
9b74cb4ee6
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
26 lines
446 B
PHP
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;
|
|
}
|
|
|
|
}
|