Class AbstractDecorator
Common base class for event decorator subclasses.
Property Summary
- 
        $_callable protectedcallableCallable 
- 
        $_options protectedarrayDecorator options 
Method Summary
- 
          __construct() publicConstructor. 
- 
          __invoke() publicInvoke 
- 
          _call() protectedCalls the decorated callable with the passed arguments. 
Method Detail
__construct() ¶ public
__construct(callable $callable, array $options = [])Constructor.
Parameters
- 
                callable$callable
- Callable. 
- 
                array$options optional
- Decorator options. 
__invoke() ¶ public
__invoke(): mixedInvoke
Returns
mixedLinks
                          http://php.net/manual/en/language.oop5.magic.php#object.invoke
                      
              _call() ¶ protected
_call(array $args): mixedCalls the decorated callable with the passed arguments.
Parameters
- 
                array$args
- Arguments for the callable. 
Returns
mixed