summaryrefslogtreecommitdiff
path: root/includes/rcfeed/RCFeedFormatter.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/rcfeed/RCFeedFormatter.php')
-rw-r--r--includes/rcfeed/RCFeedFormatter.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/includes/rcfeed/RCFeedFormatter.php b/includes/rcfeed/RCFeedFormatter.php
new file mode 100644
index 00000000..6c9f8042
--- /dev/null
+++ b/includes/rcfeed/RCFeedFormatter.php
@@ -0,0 +1,13 @@
+<?php
+interface RCFeedFormatter {
+ /**
+ * Formats the line for the live feed.
+ *
+ * @param array $feed The feed, as configured in an associative array.
+ * @param RecentChange $rc The RecentChange object showing what sort
+ * of event has taken place.
+ * @param string|null $actionComment
+ * @return string The text to send.
+ */
+ public function getLine( array $feed, RecentChange $rc, $actionComment );
+}