File tree Expand file tree Collapse file tree 2 files changed +13
-38
lines changed Expand file tree Collapse file tree 2 files changed +13
-38
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace UKFast \SDK \PSS \Entities ;
4
4
5
- class Attachment
6
- {
7
- /**
8
- * @var string
9
- */
10
- public $ name ;
5
+ use UKFast \SDK \Entity ;
11
6
12
- /**
13
- * Attachment constructor.
14
- * @param $item
15
- */
16
- public function __construct ($ item )
17
- {
18
- $ this ->name = $ item ->name ;
19
- }
7
+ /**
8
+ * @property string $name
9
+ */
10
+ class Attachment extends Entity
11
+ {
20
12
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace UKFast \SDK \PSS \Entities ;
4
4
5
- class Product
6
- {
7
- /**
8
- * @var int
9
- */
10
- public $ id ;
11
-
12
- /**
13
- * @var string
14
- */
15
- public $ type ;
5
+ use UKFast \SDK \Entity ;
16
6
17
- /**
18
- * Product constructor.
19
- * @param $item
20
- */
21
- public function __construct ($ item = null )
22
- {
23
- if (is_null ($ item )) {
24
- return ;
25
- }
26
-
27
- $ this ->id = $ item ->id ;
28
- $ this ->type = $ item ->type ;
29
- }
7
+ /**
8
+ * @property int $id
9
+ * @property string $type
10
+ */
11
+ class Product extends Entity
12
+ {
30
13
}
You can’t perform that action at this time.
0 commit comments