From 739f8f8af0568492dfcf2359acad83a9afa1a0f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Tue, 16 Nov 2021 19:15:19 +0100 Subject: [PATCH] wip --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 918c2a4..d27759a 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,7 @@ Require the package via composer: ```sh composer require archtechx/money ``` - -## Main concepts +# Usage The package has two main classes: - `Money` which represents monetary values @@ -27,8 +26,6 @@ The package has two main classes: This document uses the terms [decimal value](#decimal-value), [base value](#base-value), [default currency](#default-currency), [current currency](#current-currency), [rounding](#rounding), [math decimals](#math-decimals), [display decimals](#display-decimals), and a few others. Refer to the [Terminology](#terminology) section for definitions. -# Usage - ## Money **Important**: As an implementation of the [Money pattern](https://martinfowler.com/eaaCatalog/money.html), the `Money` object creates a new instance after each operation. Meaning, **all `Money` instances are immutable**. To modify the value of a variable, re-initialize it with a new value: