File tree 2 files changed +19
-3
lines changed
2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,15 @@ public function getName() {
48
48
}
49
49
50
50
public function getCreated () {
51
- return $ this ->created ->format ('Y-m-d\TH:i:s.u ' );
51
+ if ($ this ->created != null ) {
52
+ return $ this ->created ->format ('Y-m-d\TH:i:s.u ' );
53
+ }
54
+ else {
55
+ return null ;
56
+ }
52
57
}
53
58
59
+
54
60
public function getCreatedAsDateTime () {
55
61
return $ this ->created ;
56
62
}
Original file line number Diff line number Diff line change @@ -146,11 +146,21 @@ public function getStatus() {
146
146
}
147
147
148
148
public function getFrom () {
149
- return $ this ->from ->format ('Y-m-d\TH:i:s.u ' );
149
+ if ($ this ->from != null ) {
150
+ return $ this ->from ->format ('Y-m-d\TH:i:s.u ' );
151
+ }
152
+ else {
153
+ return null ;
154
+ }
150
155
}
151
156
152
157
public function getTo () {
153
- return $ this ->to ->format ('Y-m-d\TH:i:s.u ' );
158
+ if ($ this ->to != null ) {
159
+ return $ this ->to ->format ('Y-m-d\TH:i:s.u ' );
160
+ }
161
+ else {
162
+ return null ;
163
+ }
154
164
}
155
165
156
166
public function getFromAsDateTime () {
You can’t perform that action at this time.
0 commit comments