<?php
namespace Claromentis\Search;

$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"] ?: array()) + array("_e65d9ebe03c7b68f03597f9bf0f29" . "7d8" => base64_decode("RWFjaCBlbGVtZW50IG11c3QgYmUgYW4g" . "aW5zdGFuY2Ugb2Yg"));
use Webmozart\Assert\Assert;




class Pipeline
{
    
    
    
    
    
    
    private array $middlewares;
    public function __construct(array $_ce3a2f695287bfb9bcaffa72b83d9fc7 = [])
    {
        Assert::allIsInstanceOf($_ce3a2f695287bfb9bcaffa72b83d9fc7, MiddlewareInterface::class, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_e65d9ebe03c7b68f03597f" . "9bf0f297d8"] . 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;
    }
}