<?php
namespace Claromentis\Search;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"] ?: array()) + array("_e65d9ebe03c7b68f03597f9bf0f" . "297d8" => base64_decode("RWFjaCBlbGVtZW50IG11c3QgYmUgYW4gaW5zdGFuY2" . "Ugb2Yg"));
use Webmozart\Assert\Assert;




class Pipeline
{
    
    
    
    
    
    
    private array $middlewares;
    public function __construct(array $_ce3a2f695287bfb9bcaffa72b83d9fc7 = [])
    {
        Assert::allIsInstanceOf($_ce3a2f695287bfb9bcaffa72b83d9fc7, MiddlewareInterface::class, $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_e65d9ebe03c7b68f03597f9bf0f29" . "7d8"] . 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;
    }
}