Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Spec
Dumplie
SharedKernel
Domain
Money
PriceSpec
PHP Class Spec\Dumplie\SharedKernel\Domain\Money\PriceSpec
Inheritance:
extends
PhpSpec\ObjectBehavior
Datei anzeigen
Open project: dumplie/dumplie
Public Methods
Method
Description
it_can_be_created_from_integer
( )
it_can_be_multiplied
( )
it_has_immutable_currency
( )
it_is_converted_to_float
( )
it_knows_when_other_price_has_same_currency
( )
it_throw_exception_when_currency_is_not_known
( )
it_throws_exception_when_adding_to_price_with_a_different_currency
( )
it_throws_exception_when_adding_to_price_with_a_different_precisions
( )
it_throws_exception_when_precision_is_negaive
( )
it_throws_exception_when_value_is_negative
( )
Method Details
it_can_be_created_from_integer()
public
method
public
it_can_be_created_from_integer
( )
it_can_be_multiplied()
public
method
public
it_can_be_multiplied
( )
it_has_immutable_currency()
public
method
public
it_has_immutable_currency
( )
it_is_converted_to_float()
public
method
public
it_is_converted_to_float
( )
it_knows_when_other_price_has_same_currency()
public
method
public
it_knows_when_other_price_has_same_currency
( )
it_throw_exception_when_currency_is_not_known()
public
method
public
it_throw_exception_when_currency_is_not_known
( )
it_throws_exception_when_adding_to_price_with_a_different_currency()
public
method
public
it_throws_exception_when_adding_to_price_with_a_different_currency
( )
it_throws_exception_when_adding_to_price_with_a_different_precisions()
public
method
public
it_throws_exception_when_adding_to_price_with_a_different_precisions
( )
it_throws_exception_when_precision_is_negaive()
public
method
public
it_throws_exception_when_precision_is_negaive
( )
it_throws_exception_when_value_is_negative()
public
method
public
it_throws_exception_when_value_is_negative
( )