xref: /dokuwiki/inc/Parsing/Handler/CallWriterInterface.php (revision 5312cb0b4d32952be3e1f5acf82422c2d01f26fe)
1<?php
2
3namespace dokuwiki\Parsing\Handler;
4
5interface CallWriterInterface
6{
7    /**
8     * Add a call to our call list
9     *
10     * @param $call     the call to be added
11     */
12    public function writeCall($call);
13
14    /**
15     * Append a list of calls to our call list
16     *
17     * @param $calls     list of calls to be appended
18     */
19    public function writeCalls($calls);
20
21    /**
22     * Explicit request to finish up and clean up NOW!
23     * (probably because document end has been reached)
24     *
25     * If part of a CallWriter chain, call finalise on
26     * the original call writer
27     *
28     */
29    public function finalise();
30}
31