[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/phortune/currency/ -> PhortuneCurrency.php (summary)

(no description)

File Size: 239 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 22 functions

  __construct()
  getDefaultCurrency()
  newEmptyCurrency()
  newFromUserInput()
  newFromString()
  newFromValueAndCurrency()
  newFromList()
  formatForDisplay()
  serializeForStorage()
  formatBareValue()
  getValue()
  getCurrency()
  getValueInUSDCents()
  throwFormatException()
  throwUnlikeCurrenciesException()
  add()
  subtract()
  isEqualTo()
  negate()
  isPositive()
  isGreaterThan()
  assertInRange()

Functions
Functions that are not part of a class:

__construct()   X-Ref
No description

getDefaultCurrency()   X-Ref
No description

newEmptyCurrency()   X-Ref
No description

newFromUserInput(PhabricatorUser $user, $string)   X-Ref
No description

newFromString($string, $default = null)   X-Ref
No description

newFromValueAndCurrency($value, $currency)   X-Ref
No description

newFromList(array $list)   X-Ref
No description

formatForDisplay()   X-Ref
No description

serializeForStorage()   X-Ref
No description

formatBareValue()   X-Ref
No description

getValue()   X-Ref
No description

getCurrency()   X-Ref
No description

getValueInUSDCents()   X-Ref
No description

throwFormatException($string)   X-Ref
No description

throwUnlikeCurrenciesException(PhortuneCurrency $other)   X-Ref
No description

add(PhortuneCurrency $other)   X-Ref
No description

subtract(PhortuneCurrency $other)   X-Ref
No description

isEqualTo(PhortuneCurrency $other)   X-Ref
No description

negate()   X-Ref
No description

isPositive()   X-Ref
No description

isGreaterThan(PhortuneCurrency $other)   X-Ref
No description

assertInRange($minimum, $maximum)   X-Ref
Assert that a currency value lies within a range.

Throws if the value is not between the minimum and maximum, inclusive.

In particular, currency values can be negative (to represent a debt or
credit), so checking against zero may be useful to make sure a value
has the expected sign.

param: string|null Currency string, or null to skip check.
param: string|null Currency string, or null to skip check.
return: this



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1