コード例 #1
0
 /**
  * Returns the amount for the given Money object as simple float
  *
  * @param Money $money
  * @return float
  */
 public function asFloat(Money $money)
 {
     return $this->moneyFormatter->asFloat($money);
 }
コード例 #2
0
 public function testAsFloatIsReturningAFloat()
 {
     $value = $this->formatter->asFloat($this->inputMoney);
     $this->assertTrue(is_float($value));
 }