<?php
namespace Claromentis\Search\Indexing\Middleware;

$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"] ?: array()) + array("_e65d9ebe03c7b68f03597f9b" . "f0f297d8" => base64_decode("RWFjaCBlbGVtZW50IG11c3QgYmUgYW4gaW5zdGFuY" . "2Ugb2Yg"));
use Webmozart\Assert\Assert;




class Pipeline
{
    
    
    
    
    
    
    private array $middlewares;
    public function __construct(array $_ce3a2f695287bfb9bcaffa72b83d9fc7 = [])
    {
        Assert::allIsInstanceOf($_ce3a2f695287bfb9bcaffa72b83d9fc7, MiddlewareInterface::class, $GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_e65d9ebe03c7b68f03597f9" . "bf0f297d8"] . MiddlewareInterface::class);
        $this->middlewares = $_ce3a2f695287bfb9bcaffa72b83d9fc7;
    }
    
    
    
    
    
    
    
    
    public function handle(string $type, array $params) : array
    {
        foreach ($this->middlewares as $_b962e87c53d8a3c173cb1b2a48fa3ca1) {
            $params = $_b962e87c53d8a3c173cb1b2a48fa3ca1->handle($type, $params);
        }
        return $params;
    }
}