ReactionRegistry
Registry contains all possible reaction types which are available to the system
Table of Contents
Methods
- __construct() : mixed
- getAvailableReactionTypes() : IteratorAggregate<string|int, ReactionInterface>
- getReactionByType() : ReactionInterface|null
Methods
__construct()
public
__construct(IteratorAggregate<string|int, ReactionInterface> $registeredReactions) : mixed
Parameters
- $registeredReactions : IteratorAggregate<string|int, ReactionInterface>
getAvailableReactionTypes()
public
getAvailableReactionTypes() : IteratorAggregate<string|int, ReactionInterface>
Return values
IteratorAggregate<string|int, ReactionInterface>getReactionByType()
public
getReactionByType(string $type) : ReactionInterface|null
Parameters
- $type : string