Add functions for getting JSON-LD representations of
MDAppointmentCancellationStatus and MDAttendanceStatus
This commit is contained in:
		@@ -97,6 +97,21 @@ enum MDAppointmentCancellationStatus implements MDValueEnumInterface, JsonSerial
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Returns the JSON-LD representation of the attendance mode.
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
 | 
					     * @return string
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public function getJsonLd():string {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        return match($this) {
 | 
				
			||||||
 | 
					            self::scheduled_done => "https://schema.org/EventScheduled",
 | 
				
			||||||
 | 
					            self::cancelled => "https://schema.org/EventCancelled",
 | 
				
			||||||
 | 
					            default => throw new MDpageParameterNotFromListException("Unknown JSON LD for attendance status"),
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Provides the option to serialize as a string during json_encode().
 | 
					     * Provides the option to serialize as a string during json_encode().
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -97,6 +97,21 @@ enum MDAttendanceStatus implements MDValueEnumInterface, JsonSerializable {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Returns the JSON-LD representation of the attendance mode.
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
 | 
					     * @return string
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public function getJsonLd():string {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        return match($this) {
 | 
				
			||||||
 | 
					            self::online => "https://schema.org/OnlineEventAttendanceMode",
 | 
				
			||||||
 | 
					            self::offline => "https://schema.org/OfflineEventAttendanceMode",
 | 
				
			||||||
 | 
					            default => throw new MDpageParameterNotFromListException("Unknown JSON LD for attendance status"),
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Provides the option to serialize as a string during json_encode().
 | 
					     * Provides the option to serialize as a string during json_encode().
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user