Class om\ICal\Value\PropertyFactory

final

Converts PHP values to properties, the reverse of ValueParser; used by Calendar::create(), Event::new() and the other factories. Date-time values: a DateTimeInterface with a named (IANA) timezone keeps its local time and gets a TZID parameter, a UTC one is written with "Z", other ones (offsets like "+02:00" and abbreviations like "CEST" are not timezones) are converted to UTC. A DateTimeValue keeps its kind (DATE, floating, UTC, zoned), a string is an iCalendar value like "20260105T093000Z".

Type aliases
DateInput DateTimeInterface|DateTimeValue|string #
PropertyValue string|int|float|bool|DateTimeInterface|DateTimeValue|DateInterval|Rule|CalAddress|Period|array{float, float}|list<string|DateTimeInterface|DateTimeValue|Period> #
PropertyList array<int|string, Property|PropertyValue> #
Methods
Constants