Heystack\Core\Input\Handler
Hold and handles input processors.
This class provides storage and processing of input processors,
processors are stored and accessed by an identifier
- Author: Cam Spiers <cameron@heyday.co.nz>
Synopsis
class Handler
implements
HandlerInterface
{
- // methods
- public void addProcessor()
- public mixed process()
- // Inherited methods from HandlerTrait
- public mixed getProcessor()
- public boolean hasProcessor()
- public array getProcessors()
- public void setProcessors()
Hierarchy
Methods
public
- addProcessor() — Adds an input processor to the array of processors, storing it by its identifier
- process() — Process an input processor by identifier if it exists
Inherited from Heystack\Core\Processor\HandlerTrait
public
- getProcessor() — Return a processor by an identifier if it exists
- getProcessors() — Return all processors
- hasProcessor() — Check if a processor is on the array
- setProcessors() — Set processors explicitly. This method uses the addProcessor method which should enforce what type of objects can be added to the array