/** * Get all unfolded lines. * * @return array */ public function toLines() { if (!$this->value instanceof ValueInterface) { throw new \Exception('The value must implement the ValueInterface. Call RecurrenceId::applyTimeSettings() before adding RecurrenceId.'); } else { return parent::toLines(); } }