39 public const PASS =
'PASS';
42 public const FAIL =
'FAIL';
55 public const UI =
'UI';
160 $ret->message = $msg;
161 $ret->messageType =
'error';
174 $ret->message = $msg;
195 public static function newUI( array $reqs,
Message $msg, $msgtype =
'warning' ) {
197 throw new \InvalidArgumentException(
'$reqs may not be empty' );
199 if ( $msgtype !==
'warning' && $msgtype !==
'error' ) {
200 throw new \InvalidArgumentException( $msgtype .
' is not a valid message type.' );
205 $ret->neededRequests = $reqs;
206 $ret->message = $msg;
207 $ret->messageType = $msgtype;
220 throw new \InvalidArgumentException(
'$reqs may not be empty' );
225 $ret->neededRequests = $reqs;
The Message class deals with fetching and processing of interface message into a variety of formats.