mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-14 17:46:13 +01:00
24 lines
519 B
PHP
24 lines
519 B
PHP
|
<?php
|
||
|
|
||
|
namespace PhpMimeMailParser\Contracts;
|
||
|
|
||
|
use PhpMimeMailParser\MimePart;
|
||
|
use PhpMimeMailParser\MiddlewareStack;
|
||
|
|
||
|
/**
|
||
|
* Process Mime parts by either:
|
||
|
* processing the part or calling the $next MiddlewareStack
|
||
|
*/
|
||
|
interface Middleware
|
||
|
{
|
||
|
/**
|
||
|
* Process a mime part, optionally delegating parsing to the $next MiddlewareStack
|
||
|
*
|
||
|
* @param MimePart $part
|
||
|
* @param MiddlewareStack $next
|
||
|
*
|
||
|
* @return MimePart
|
||
|
*/
|
||
|
public function parse(MimePart $part, MiddlewareStack $next);
|
||
|
}
|