hello
Server : Apache/2.4.52 (Ubuntu) System : Linux HAN2 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64 User : servadmin ( 1000) PHP Version : 8.1.2-1ubuntu2.25 Disable Function : NONE Directory : /www/docs/home.obu.edu/wp-content/plugins/wp-rss-aggregator/src/Handlers/ |
<?php
namespace RebelCode\Wpra\Core\Handlers;
use stdClass;
use Traversable;
/**
* A generic handler implementation that invokes a list of children handlers in sequence.
*
* @since 4.13
*/
class MultiHandler
{
/**
* The list of handlers to invoke.
*
* @since 4.13
*
* @var callable[]|stdClass|Traversable
*/
protected $handlers;
/**
* Constructor.
*
* @since 4.13
*
* @param callable[]|stdClass|Traversable $handlers The list of handlers to invoke.
*/
public function __construct($handlers)
{
$this->handlers = $handlers;
}
/**
* {@inheritdoc}
*
* @since 4.13
*/
public function __invoke()
{
$args = func_get_args();
foreach ($this->handlers as $handler) {
call_user_func_array($handler, $args);
}
}
}