File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 5
5
use Spatie \Enum \Enum ;
6
6
7
7
/**
8
- * @method static self accepted()
9
- * @method static self declined()
10
8
* @method static self tentative()
9
+ * @method static self confirmed()
10
+ * @method static self cancelled()
11
11
*/
12
12
class EventStatus extends Enum
13
13
{
14
14
const MAP_VALUE = [
15
- 'accepted ' => 'ACCEPTED ' ,
16
- 'declined ' => 'DECLINED ' ,
17
15
'tentative ' => 'TENTATIVE ' ,
16
+ 'confirmed ' => 'CONFIRMED ' ,
17
+ 'cancelled ' => 'CANCELLED ' ,
18
18
];
19
19
}
Original file line number Diff line number Diff line change 5
5
use Spatie \Enum \Enum ;
6
6
7
7
/**
8
+ * @method static self needs_action()
8
9
* @method static self accepted()
9
10
* @method static self declined()
10
11
* @method static self tentative()
12
+ * @method static self delegated()
11
13
*/
12
14
class ParticipationStatus extends Enum
13
15
{
14
16
const MAP_VALUE = [
17
+ 'needs_action ' => 'NEEDS-ACTION ' ,
15
18
'accepted ' => 'ACCEPTED ' ,
16
19
'declined ' => 'DECLINED ' ,
17
20
'tentative ' => 'TENTATIVE ' ,
21
+ 'delegated ' => 'DELEGATED ' ,
18
22
];
19
23
}
Original file line number Diff line number Diff line change @@ -227,12 +227,12 @@ public function it_can_add_attendees()
227
227
public function it_can_set_a_status ()
228
228
{
229
229
$ payload = Event::create ()
230
- ->status (EventStatus::accepted ())
230
+ ->status (EventStatus::tentative ())
231
231
->resolvePayload ();
232
232
233
233
$ this ->assertPropertyEqualsInPayload (
234
234
'STATUS ' ,
235
- EventStatus::accepted ()->getValue (),
235
+ EventStatus::tentative ()->getValue (),
236
236
$ payload
237
237
);
238
238
}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public function it_can_create_a_calendar()
36
36
->attendee ('freek@spatie.be ' , 'Freek ' , ParticipationStatus::tentative ())
37
37
->transparent ()
38
38
->classification (Classification::public ())
39
- ->status (EventStatus::accepted ())
39
+ ->status (EventStatus::tentative ())
40
40
->alert (
41
41
Alert::date (
42
42
new DateTime ('05/16/2020 12:00:00 ' ),
@@ -74,7 +74,7 @@ public function it_can_create_a_calendar()
74
74
LOCATION:Samberstraat 69D\, 2060 Antwerp\, Belgium \r
75
75
CLASS:PUBLIC \r
76
76
TRANSP:TRANSPARENT \r
77
- STATUS:ACCEPTED \r
77
+ STATUS:TENTATIVE \r
78
78
DTSTART:20190306T150000 \r
79
79
DTEND:20190306T160000 \r
80
80
DTSTAMP:20190306T160000 \r
You can’t perform that action at this time.
0 commit comments