-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhow.puml
45 lines (37 loc) · 862 Bytes
/
how.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@startuml
'https://plantuml.com/class-diagram
package "Domain" #DDDDDD {
class Client {
- Wallet $wallet
.. Getters ..
+ getWallet(): Wallet
.. Business logic ..
+ subtractMoney(float $amount): void
}
class Wallet {
- float $money
.. Business logic ..
+ subtractMoney(float $amount): void
}
class Order {
- Item[] $items
.. Business logic ..
+ calculateAmount(): float
}
class Item {
- float $price
.. Getters ..
+ getPrice(): float
}
class OrderService {
- Client $client
- Order $order
.. Business logic ..
+ makeOrder(): void
}
Client::$wallet o-- Wallet
Order::$items o-- Item
OrderService::$order ..> Order
OrderService::$client ..> Client
}
@enduml