PHP Класс Neos\Flow\ResourceManagement\Publishing\MessageCollector

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$messages SplObjectStorage
$systemLogger Neos\Flow\Log\SystemLoggerInterface

Открытые методы

Метод Описание
__construct ( ) Message Collector Constructor
__destruct ( ) : void Flush all notification during the object lifecycle
append ( string $message, string $severity = Error::SEVERITY_ERROR, integer $code = null ) : void
flush ( callable $callback = null ) : void
hasMessages ( ) : boolean

Описание методов

__construct() публичный Метод

Message Collector Constructor
public __construct ( )

__destruct() публичный Метод

Flush all notification during the object lifecycle
public __destruct ( ) : void
Результат void

append() публичный Метод

public append ( string $message, string $severity = Error::SEVERITY_ERROR, integer $code = null ) : void
$message string The message to log
$severity string An integer value, one of the Error::SEVERITY_* constants
$code integer A unique error code
Результат void

flush() публичный Метод

public flush ( callable $callback = null ) : void
$callback callable a callback function to process every notification
Результат void

hasMessages() публичный Метод

public hasMessages ( ) : boolean
Результат boolean

Описание свойств

$messages защищенное свойство

protected SplObjectStorage $messages
Результат SplObjectStorage

$systemLogger защищенное свойство

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
Результат Neos\Flow\Log\SystemLoggerInterface