Skip to content

Commit 51ffff3

Browse files
committed
(fix) (UMCS-426) Adjust phpDoc comments.
1 parent e83ef24 commit 51ffff3

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

src/Resources/Basket.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,21 @@ class Basket extends AbstractUnzerResource
3434
/**
3535
* @var float $amountTotalGross
3636
*
37-
* @deprecated 1.1.5.0 @see $totalValueGross.
37+
* @deprecated since 1.1.5.0 @see $totalValueGross.
3838
*/
3939
protected $amountTotalGross = 0.0;
4040

4141
/**
4242
* @var float $amountTotalDiscount
4343
*
44-
* @deprecated 1.1.5.0 Property is redundant and is no longer needed.
44+
* @deprecated since 1.1.5.0 @see Please set $amountDiscountPerUnitGross for each element of $basketItems instead.
4545
*/
4646
protected $amountTotalDiscount = 0.0;
4747

4848
/**
4949
* @var float $amountTotalVat
5050
*
51-
* @deprecated 1.1.5.0 Property is redundant and is no longer needed.
51+
* @deprecated since 1.1.5.0 Please set the $vat in percent for each element of $basketItems instead, if not already happened. The actual amount is not required anymore.
5252
*/
5353
protected $amountTotalVat = 0.0;
5454

@@ -70,7 +70,7 @@ class Basket extends AbstractUnzerResource
7070
/**
7171
* Basket constructor.
7272
*
73-
* @deprecated 1.1.5.0 Please call constructor without parameters and use setter functions instead.
73+
* @deprecated since 1.1.5.0 Please call constructor without parameters and use setter functions instead.
7474
*
7575
* @param float $amountTotalGross
7676
* @param string $currencyCode
@@ -94,7 +94,7 @@ public function __construct(
9494
/**
9595
* @return float
9696
*
97-
* @deprecated 1.1.5.0 @see $getTotalValueGross.
97+
* @deprecated since 1.1.5.0 @see $getTotalValueGross.
9898
*/
9999
public function getAmountTotalGross(): float
100100
{
@@ -104,7 +104,7 @@ public function getAmountTotalGross(): float
104104
/**
105105
* @param float $amountTotalGross
106106
*
107-
* @deprecated 1.1.5.0 @see $getTotalValueGross.
107+
* @deprecated since 1.1.5.0 @see $getTotalValueGross.
108108
*
109109
* @return Basket
110110
*/
@@ -136,7 +136,7 @@ public function setTotalValueGross(float $totalValueGross): Basket
136136
/**
137137
* @return float
138138
*
139-
* @deprecated 1.1.5.0 Property is redundant and is no longer needed.
139+
* @deprecated since 1.1.5.0 Property is redundant and is no longer needed.
140140
*/
141141
public function getAmountTotalDiscount(): float
142142
{
@@ -146,7 +146,7 @@ public function getAmountTotalDiscount(): float
146146
/**
147147
* @param float $amountTotalDiscount
148148
*
149-
* @deprecated 1.1.5.0 Property is redundant and is no longer needed.
149+
* @deprecated since 1.1.5.0 Property is redundant and is no longer needed.
150150
*
151151
* @return Basket
152152
*/
@@ -159,7 +159,7 @@ public function setAmountTotalDiscount(float $amountTotalDiscount): Basket
159159
/**
160160
* @return float
161161
*
162-
* @deprecated 1.1.5.0 Property is redundant and is no longer needed.
162+
* @deprecated since 1.1.5.0 Property is redundant and is no longer needed.
163163
*/
164164
public function getAmountTotalVat(): float
165165
{
@@ -169,7 +169,7 @@ public function getAmountTotalVat(): float
169169
/**
170170
* @param float $amountTotalVat
171171
*
172-
* @deprecated 1.1.5.0 Property is redundant and is no longer needed.
172+
* @deprecated since 1.1.5.0 Property is redundant and is no longer needed.
173173
*
174174
* @return Basket
175175
*/
@@ -320,7 +320,7 @@ public function expose(): array
320320
/**
321321
* {@inheritDoc}
322322
*/
323-
public function getApiVersion() :string
323+
public function getApiVersion(): string
324324
{
325325
if (!empty($this->getTotalValueGross())) {
326326
return 'v2';

src/Resources/EmbeddedResources/BasketItem.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class BasketItem extends AbstractUnzerResource
4040
/**
4141
* @var float $amountDiscount
4242
*
43-
* @deprecated 1.1.5.0 @see $amountDiscountPerUnitGross.
43+
* @deprecated since 1.1.5.0 @see $amountDiscountPerUnitGross.
4444
*/
4545
protected $amountDiscount = 0.0;
4646

@@ -50,21 +50,21 @@ class BasketItem extends AbstractUnzerResource
5050
/**
5151
* @var float $amountGross
5252
*
53-
* @deprecated 1.1.5.0 Property is redundant and is no longer needed.
53+
* @deprecated since 1.1.5.0 Property is redundant and is no longer needed.
5454
*/
5555
protected $amountGross = 0.0;
5656

5757
/**
5858
* @var float $amountVat
5959
*
60-
* @deprecated 1.1.5.0 Property is redundant and is no longer needed.
60+
* @deprecated since 1.1.5.0 Property is redundant and is no longer needed.
6161
*/
6262
protected $amountVat = 0.0;
6363

6464
/**
6565
* @var float $amountPerUnit
6666
*
67-
* @deprecated 1.1.5.0 @see amountPerUnitGross
67+
* @deprecated since 1.1.5.0 @see amountPerUnitGross
6868
*/
6969
protected $amountPerUnit = 0.0;
7070

@@ -74,7 +74,7 @@ class BasketItem extends AbstractUnzerResource
7474
/**
7575
* @var float $amountNet
7676
*
77-
* @deprecated 1.1.5.0 Property is redundant and is no longer needed.
77+
* @deprecated since 1.1.5.0 Property is redundant and is no longer needed.
7878
*/
7979
protected $amountNet = 0.0;
8080

@@ -96,7 +96,7 @@ class BasketItem extends AbstractUnzerResource
9696
/**
9797
* BasketItem constructor.
9898
*
99-
* @deprecated 1.1.5.0 Please call constructor without parameters and use setter functions instead.
99+
* @deprecated since 1.1.5.0 Please call constructor without parameters and use setter functions instead.
100100
*
101101
* @param string $title
102102
* @param float $amountNet
@@ -177,7 +177,7 @@ public function setVat(float $vat): BasketItem
177177
/**
178178
* @return float
179179
*
180-
* @deprecated 1.1.5.0 @see $getAmountDiscountPerUnitGross.
180+
* @deprecated since 1.1.5.0 @see $getAmountDiscountPerUnitGross.
181181
*/
182182
public function getAmountDiscount(): float
183183
{
@@ -187,7 +187,7 @@ public function getAmountDiscount(): float
187187
/**
188188
* @param float $amountDiscount
189189
*
190-
* @deprecated 1.1.5.0 @see $setAmountDiscountPerUnitGross.
190+
* @deprecated since 1.1.5.0 @see $setAmountDiscountPerUnitGross.
191191
*
192192
* @return BasketItem
193193
*/
@@ -200,7 +200,7 @@ public function setAmountDiscount(float $amountDiscount): BasketItem
200200
/**
201201
* @return float
202202
*
203-
* @deprecated 1.1.5.0 Property is redundant and is no longer needed.
203+
* @deprecated since 1.1.5.0 Property is redundant and is no longer needed.
204204
*/
205205
public function getAmountGross(): float
206206
{
@@ -210,7 +210,7 @@ public function getAmountGross(): float
210210
/**
211211
* @param float $amountGross
212212
*
213-
* @deprecated 1.1.5.0 Property is redundant and is no longer needed.
213+
* @deprecated since 1.1.5.0 Property is redundant and is no longer needed.
214214
*
215215
* @return BasketItem
216216
*/
@@ -261,7 +261,7 @@ public function setAmountPerUnitGross(float $amountPerUnitGross): BasketItem
261261
/**
262262
* @return float
263263
*
264-
* @deprecated 1.1.5.0 Property is redundant and is no longer needed.
264+
* @deprecated since 1.1.5.0 Property is redundant and is no longer needed.
265265
*/
266266
public function getAmountVat(): float
267267
{
@@ -271,7 +271,7 @@ public function getAmountVat(): float
271271
/**
272272
* @param float $amountVat
273273
*
274-
* @deprecated 1.1.5.0 Property is redundant and is no longer needed.
274+
* @deprecated since 1.1.5.0 Property is redundant and is no longer needed.
275275
*
276276
* @return BasketItem
277277
*/
@@ -284,7 +284,7 @@ public function setAmountVat(float $amountVat): BasketItem
284284
/**
285285
* @return float
286286
*
287-
* @deprecated 1.1.5.0 Property is redundant and is no longer needed.
287+
* @deprecated since 1.1.5.0 Property is redundant and is no longer needed.
288288
*/
289289
public function getAmountPerUnit(): float
290290
{
@@ -294,7 +294,7 @@ public function getAmountPerUnit(): float
294294
/**
295295
* @param float $amountPerUnit
296296
*
297-
* @deprecated 1.1.5.0 @see setAmountPerUnitGross
297+
* @deprecated since 1.1.5.0 @see setAmountPerUnitGross
298298
*
299299
* @return BasketItem
300300
*/
@@ -307,7 +307,7 @@ public function setAmountPerUnit(float $amountPerUnit): BasketItem
307307
/**
308308
* @return float
309309
*
310-
* @deprecated 1.1.5.0 Property is redundant and is no longer needed.
310+
* @deprecated since 1.1.5.0 Property is redundant and is no longer needed.
311311
*/
312312
public function getAmountNet(): float
313313
{
@@ -317,7 +317,7 @@ public function getAmountNet(): float
317317
/**
318318
* @param float $amountNet
319319
*
320-
* @deprecated 1.1.5.0 Property is redundant and is no longer needed.
320+
* @deprecated since 1.1.5.0 Property is redundant and is no longer needed.
321321
*
322322
* @return BasketItem
323323
*/

0 commit comments

Comments
 (0)