public
static
|
new(
?string $uid = null,
DateTimeInterface|DateTimeValue|string|null $stamp = null,
DateTimeInterface|DateTimeValue|string|null $start = null,
DateTimeInterface|DateTimeValue|string|null $due = null,
DateInterval|string|null $duration = null,
DateTimeInterface|DateTimeValue|string|null $completed = null,
?int $percentComplete = null,
?string $summary = null,
?string $description = null,
?string $location = null,
?string $url = null,
Status|string|null $status = null,
Classification|string|null $classification = null,
?int $priority = null,
?int $sequence = null,
iterable<string> $categories = [],
CalAddress|string|null $organizer = null,
iterable<CalAddress|string> $attendees = [],
Rule|string|null $rrule = null,
iterable<DateTimeInterface|DateTimeValue|Period|string> $rdates = [],
iterable<DateTimeInterface|DateTimeValue|string> $exdates = [],
DateTimeInterface|DateTimeValue|string|null $recurrenceId = null,
array{(float|int), (float|int)}|null $geo = null,
?string $color = null,
iterable<Image|string> $images = [],
iterable<Conference|string> $conferences = [],
iterable<Link|string> $links = [],
iterable<Relation|string> $relatedTo = [],
iterable<Alarm|Component> $alarms = [],
iterable<Location|Component> $locations = [],
PropertyList $properties = [],
): self
A new task; the arguments are those of Event::new() with DUE instead of DTEND.
A new task; the arguments are those of Event::new() with DUE instead of DTEND.
Parameters
| $uid |
UID, a random UUID when null
|
| $stamp |
DTSTAMP, now when null; written in UTC
|
| $start |
DTSTART: a DateTimeInterface (TZID of its IANA timezone or UTC), a DateTimeValue (also a DATE or a floating time) or an iCalendar string
|
| $due |
DUE, not earlier than the start and of the same value type
|
| $duration |
DURATION instead of DUE, requires a start
|
| $completed |
COMPLETED, written in UTC
|
| $percentComplete |
PERCENT-COMPLETE, 0 to 100
|
| $status |
NEEDS-ACTION, COMPLETED, IN-PROCESS or CANCELLED
|
Throws
|
#
|