class MigrateMessageCapture implements MigrateMessageInterface (View source)

Allows capturing messages rather than displaying them directly.

Properties

protected array $messages

Array of recorded messages.

Methods

display(string $message, string $type = 'status')

Displays a migrate message.

clear()

Clears out any captured messages.

array
getMessages()

Returns any captured messages.

Details

display(string $message, string $type = 'status')

Displays a migrate message.

Parameters

string $message

The message to display.

string $type

The type of message, for example: status or warning.

clear()

Clears out any captured messages.

array getMessages()

Returns any captured messages.

Return Value

array

The captured messages.