| 1 | <?php |
||
| 22 | class HttpProtocolChainVisitor implements HttpProtocolVisitorInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var \SplPriorityQueue|HttpProtocolVisitorInterface[] |
||
| 26 | */ |
||
| 27 | private $visitors; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Constructor. |
||
| 31 | */ |
||
| 32 | public function __construct() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Add visitor to chain |
||
| 39 | * |
||
| 40 | * @param HttpProtocolVisitorInterface $visitor |
||
| 41 | * @param int $priority |
||
| 42 | */ |
||
| 43 | public function add(HttpProtocolVisitorInterface $visitor, int $priority = 0): void |
||
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | public function visit(Notification $notification, Request $request): Request |
||
| 62 | } |
||
| 63 |