| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class ICalendarVariable |
||
| 23 | { |
||
| 24 | // Public Methods |
||
| 25 | // ========================================================================= |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Format the passed in $text as per the iCalendar RFC 2445 spec: |
||
| 29 | * https://icalendar.org/validator.html |
||
| 30 | * |
||
| 31 | * @param string $text |
||
| 32 | * |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function rfc2445(string $text): string |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Return the ICal object (or null) for the events feed |
||
| 42 | * |
||
| 43 | * @param mixed|array|string $files |
||
| 44 | * @param array $config |
||
| 45 | * |
||
| 46 | * @return null|ICal |
||
| 47 | */ |
||
| 48 | public function ics($files, array $config = []) |
||
| 53 |