wiki.techinc.nl/includes/rcfeed/RCFeedFormatter.php
Ebrahim Byagowi d8ea17470c Add namespace and deprecation alias to RCFeedFormatter
This patch introduces a namespace declaration for the
MediaWiki\RCFeed to RCFeedFormatter and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: Ief351b40fb117e57a868ef7618df2109b550ff58
2024-05-16 23:11:17 +03:30

46 lines
1.5 KiB
PHP

<?php
/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* @file
*/
namespace MediaWiki\RCFeed;
use RecentChange;
/**
* Interface for RC feed formatters
*
* @stable to implement
* @since 1.22
*/
interface RCFeedFormatter {
/**
* Formats the line to be sent by an engine
*
* @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|null The text to send. If the formatter returns null,
* the line will not be sent.
*/
public function getLine( array $feed, RecentChange $rc, $actionComment );
}
/** @deprecated class alias since 1.43 */
class_alias( RCFeedFormatter::class, 'RCFeedFormatter' );