MediaWiki master
IApiMessage.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Api;
22
24
43interface IApiMessage extends MessageSpecifier {
53 public function getApiCode();
54
59 public function getApiData();
60
66 public function setApiCode( $code, ?array $data = null );
67
72 public function setApiData( array $data );
73}
74
76class_alias( IApiMessage::class, 'IApiMessage' );
Interface for messages with machine-readable data for use by the API.
getApiData()
Returns additional machine-readable data about the error condition.
setApiData(array $data)
Sets additional machine-readable data about the error condition.
setApiCode( $code, ?array $data=null)
Sets the machine-readable code for use by the API.
getApiCode()
Returns a machine-readable code for use by the API.