File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,15 @@ layers:
5959 regex : ^Bavix\\.*Internal\\Service\\.*Service$
6060
6161 # contracts
62+ - name : Model
63+ collectors :
64+ - type : className
65+ regex : ^Bavix\\.*Models\\Transaction$
66+ - type : className
67+ regex : ^Bavix\\.*Models\\Transfer$
68+ - type : className
69+ regex : ^Bavix\\.*Models\\Wallet$
70+
6271 - name : Service
6372 collectors :
6473 - type : className
@@ -97,6 +106,7 @@ ruleset:
97106 - AssemblerDtoInterface # delete as soon as possible
98107 - ModelNotFoundException
99108 - ServiceInterface
109+ - Model
100110 - Legacy # delete as soon as possible
101111
102112 Infra :
@@ -107,6 +117,13 @@ ruleset:
107117 Dto :
108118 - DtoInterface
109119
120+ Model :
121+ - AssemblerDtoInterface
122+ - ServiceInterface
123+ - EloquentModel
124+ - Legacy
125+ - UI
126+
110127 TransformInterface :
111128 - DtoInterface
112129 Transform :
@@ -116,20 +133,24 @@ ruleset:
116133
117134 RepositoryInterface :
118135 - DtoInterface
136+ - Model
119137 Repository :
120138 - RepositoryInterface
121139 - TransformInterface
122140 - DtoInterface
141+ - Model
123142
124143 ServiceInterface :
125144 - EloquentModel
126145 - DtoInterface
146+ - Model
127147 Service :
128148 - AssemblerDtoInterface
129149 - RepositoryInterface
130150 - ServiceInterface
131151 - EloquentModel
132152 - DtoInterface
153+ - Model
133154
134155 AssemblerDtoInterface :
135156 - EloquentModel
@@ -145,3 +166,4 @@ ruleset:
145166 - AssemblerDtoInterface
146167 - ServiceInterface
147168 - DtoInterface
169+ - Model
Original file line number Diff line number Diff line change 77use Bavix \Wallet \Interfaces \Wallet ;
88use Bavix \Wallet \Internal \Service \MathServiceInterface ;
99use Bavix \Wallet \Models \Wallet as WalletModel ;
10- use Bavix \Wallet \Services \CastService ;
10+ use Bavix \Wallet \Services \CastServiceInterface ;
1111use function config ;
1212use Illuminate \Database \Eloquent \Model ;
1313use Illuminate \Database \Eloquent \Relations \BelongsTo ;
@@ -84,7 +84,7 @@ public function getAmountIntAttribute(): int
8484 public function getAmountFloatAttribute (): string
8585 {
8686 $ math = app (MathServiceInterface::class);
87- $ decimalPlacesValue = app (CastService ::class)
87+ $ decimalPlacesValue = app (CastServiceInterface ::class)
8888 ->getWallet ($ this ->wallet )
8989 ->decimal_places ;
9090 $ decimalPlaces = $ math ->powTen ($ decimalPlacesValue );
@@ -98,7 +98,7 @@ public function getAmountFloatAttribute(): string
9898 public function setAmountFloatAttribute ($ amount ): void
9999 {
100100 $ math = app (MathServiceInterface::class);
101- $ decimalPlacesValue = app (CastService ::class)
101+ $ decimalPlacesValue = app (CastServiceInterface ::class)
102102 ->getWallet ($ this ->wallet )
103103 ->decimal_places ;
104104 $ decimalPlaces = $ math ->powTen ($ decimalPlacesValue );
You can’t perform that action at this time.
0 commit comments