/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/Event/Decorator
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/Event/Decorator/AbstractDecorator.php (1756B)
$options Decorator options.
*/
public function __construct(callable $callable, array $options = [])
{
$this->_callable = $callable;
$this->_options = $options;
}
/**
* Invoke
*
* @link https://secure.php.net/manual/en/language.oop5.magic.php#object.invoke
* @return mixed
*/
public function __invoke()
{
return $this->_call(func_get_args());
}
/**
* Calls the decorated callable with the passed arguments.
*
* @param array $args Arguments for the callable.
* @return mixed
*/
protected function _call(array $args)
{
$callable = $this->_callable;
return $callable(...$args);
}
}