| 1 | <?php |
||
| 12 | final class MoneyFactory implements MoneyFactoryContract |
||
| 13 | { |
||
| 14 | /** @var CurrencyContract */ |
||
| 15 | private $currency; |
||
| 16 | |||
| 17 | 4 | public function __construct(CurrencyContract $currency) |
|
| 21 | |||
| 22 | 1 | public function buildFromFloat(float $amount): MoneyContract |
|
| 26 | |||
| 27 | 1 | public function buildFromFractionalUnits(int $amount): MoneyContract |
|
| 31 | |||
| 32 | 1 | public function buildFromString(string $amount): MoneyContract |
|
| 36 | |||
| 37 | 1 | public function buildFromDecimal(Decimal $amount): MoneyContract |
|
| 41 | } |
||
| 42 |