Skip to content

Commit 8b4acd5

Browse files
wip
1 parent 8375d9f commit 8b4acd5

2 files changed

Lines changed: 20 additions & 12 deletions

File tree

src/Models/Orders/LineItem.php

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,60 +7,61 @@
77
class LineItem
88
{
99
/**
10-
* @var string $uuid
10+
* @var string
1111
*/
1212
protected $uuid;
1313

1414
/**
15-
* @var string|null $externalIdentifier
15+
* @var string|null
1616
*/
1717
protected $externalIdentifier;
1818

1919
/**
20-
* @var string|null $name
20+
* @var string|null
2121
*/
2222
protected $name;
2323

2424
/**
25-
* @var int $quantity
25+
* @var int
2626
*/
2727
protected $quantity;
2828

2929
/**
30-
* @var string $price
30+
* @var string
3131
*/
3232
protected $price;
3333

3434
/**
35-
* @var int|null $discountAmount
35+
* @var int|null
3636
*/
3737
protected $discountAmount;
3838

3939
/**
40-
* @var int $totalAmount
40+
* @var int
4141
*/
4242
protected $totalAmount;
4343

4444
/**
45-
* @var string $createdAt
45+
* @var string
4646
*/
4747
protected $createdAt;
4848

4949
/**
50-
* @var string $updatedAt
50+
* @var string
5151
*/
5252
protected $updatedAt;
5353

5454
/**
55-
* @var Product|null $product
55+
* @var Product|null
5656
*/
5757
protected $product;
5858

5959
/**
60-
* @var SubLineItem[] $subLineItems
60+
* @var SubLineItem[]
6161
*/
6262
protected $subLineItems;
6363

64+
/** @param SubLineItem[] $subLineItems */
6465
public function __construct(
6566
string $uuid,
6667
?string $externalIdentifier,
@@ -137,6 +138,9 @@ public function getProduct(): ?Product
137138
return $this->product;
138139
}
139140

141+
/**
142+
* @return array|SubLineItem[]
143+
*/
140144
public function getSubLineItems(): array
141145
{
142146
return $this->subLineItems;

src/Models/Orders/Order.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class Order
7878
// TODO: Add Charges
7979

8080
/**
81-
* @var string|null
81+
* @var string
8282
*/
8383
protected $createdAt;
8484

@@ -107,6 +107,7 @@ class Order
107107
*/
108108
const resourceUri = '/api/v3/oauth/clients/orders';
109109

110+
/** @param LineItem[] $lineItems */
110111
public function __construct(
111112
string $uuid,
112113
string $externalIdentifier,
@@ -225,6 +226,9 @@ public function getShop(): Shop
225226
return $this->shop;
226227
}
227228

229+
/**
230+
* @return array|LineItem[]
231+
*/
228232
public function getLineItems(): array
229233
{
230234
return $this->lineItems;

0 commit comments

Comments
 (0)