Class AbstractDecorator
Common base class for event decorator subclasses.
Property Summary
- 
        $_callable protected
callableCallable
 - 
        $_options protected
arrayDecorator options
 
Method Summary
- 
          
__construct() public
Constructor.
 - 
          
__invoke() public
Invoke
 - 
          
_call() protected
Calls the decorated callable with the passed arguments.
 
Method Detail
__construct() ¶ public
__construct(callable $callable, array<string, mixed> $options = [])
      Constructor.
Parameters
- 
                
callable$callable Callable.
- 
                
array<string, mixed>$options optional Decorator options.
__invoke() ¶ public
__invoke(): mixed
      Invoke
Returns
mixedLinks
                          https://secure.php.net/manual/en/language.oop5.magic.php#object.invoke
                      
              _call() ¶ protected
_call(array $args): mixed
      Calls the decorated callable with the passed arguments.
Parameters
- 
                
array$args Arguments for the callable.
Returns
mixed