@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at recaptime-dev/main 23 lines 519 B view raw
1<?php 2 3namespace PhpMimeMailParser\Contracts; 4 5use PhpMimeMailParser\MimePart; 6use PhpMimeMailParser\MiddlewareStack; 7 8/** 9 * Process Mime parts by either: 10 * processing the part or calling the $next MiddlewareStack 11 */ 12interface Middleware 13{ 14 /** 15 * Process a mime part, optionally delegating parsing to the $next MiddlewareStack 16 * 17 * @param MimePart $part 18 * @param MiddlewareStack $next 19 * 20 * @return MimePart 21 */ 22 public function parse(MimePart $part, MiddlewareStack $next); 23}