5 class SchemaOrgDataConverter {
8 * Converts an interaction count to a string with the interaction type.
10 * Schema.org defines a number of different interaction types.
13 * The interaction count.
14 * @param array $arguments
15 * An array of arguments defined in the mapping.
17 * - interaction_type: The string to use for the type of interaction
18 * (e.g. UserComments).
21 * The formatted string.
23 * @see http://schema.org/UserInteraction
25 public static function interactionCount($count, $arguments) {
26 $interaction_type = $arguments['interaction_type'];
27 return "$interaction_type:$count";