parser = $fn; } /** * Process a mime part, optionally delegating parsing to the $next MiddlewareStack */ public function parse(MimePart $part, MiddlewareStack $next) { return call_user_func($this->parser, $part, $next); } }