File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,11 @@ class InvoiceQuery
61
61
*/
62
62
public $ status ;
63
63
64
+ /**
65
+ * @var \DateTime
66
+ */
67
+ public $ date ;
68
+
64
69
/**
65
70
* InvoiceQuery constructor.
66
71
*
@@ -76,6 +81,10 @@ public function __construct($item = null)
76
81
? DateTime::createFromFormat (DateTime::ISO8601 , $ item ->resolution_date )
77
82
: null ;
78
83
84
+ $ date = ($ item ->date != null )
85
+ ? DateTime::createFromFormat (DateTime::ISO8601 , $ item ->date )
86
+ : null ;
87
+
79
88
$ this ->id = $ item ->id ;
80
89
$ this ->contactId = $ item ->contact_id ;
81
90
$ this ->amount = $ item ->amount ;
@@ -86,6 +95,7 @@ public function __construct($item = null)
86
95
$ this ->contactMethod = $ item ->contact_method ;
87
96
$ this ->resolution = $ item ->resolution ;
88
97
$ this ->resolutionDate = $ resolutionDate ;
98
+ $ this ->date = $ date ;
89
99
$ this ->status = $ item ->status ;
90
100
}
91
101
}
You can’t perform that action at this time.
0 commit comments