Метод | Описание | |
---|---|---|
ParseHandlersToJson ( Swiftriver\Core\EventDistribution\IEventHandler[] $handlers ) | Parses a collection of IEventHandlers into well formed JSON | |
ParseJsonToEventHandlerConfiguration ( string $json ) : AssociativeArray | Given a json string this function will attemp to extract the associative array of configuration options or throw an InvalidArgumentException | |
ParseJsonToEventHandlerName ( string $json ) : string | Given a string of JSON this function parses it and returns the name property or throws an InvalidArgumentException |
public ParseHandlersToJson ( Swiftriver\Core\EventDistribution\IEventHandler[] $handlers ) | ||
$handlers | Swiftriver\Core\EventDistribution\IEventHandler[] |
public ParseJsonToEventHandlerConfiguration ( string $json ) : AssociativeArray | ||
$json | string | |
Результат | AssociativeArray |
public ParseJsonToEventHandlerName ( string $json ) : string | ||
$json | string | |
Результат | string |