summaryrefslogtreecommitdiff
path: root/platform/www/inc/Parsing/Handler/CallWriterInterface.php
blob: ffc246876877cf4f1d490780b9509f3b9a16e7cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php

namespace dokuwiki\Parsing\Handler;

interface CallWriterInterface
{
    /**
     * Add a call to our call list
     *
     * @param array $call the call to be added
     */
    public function writeCall($call);

    /**
     * Append a list of calls to our call list
     *
     * @param array[] $calls list of calls to be appended
     */
    public function writeCalls($calls);

    /**
     * Explicit request to finish up and clean up NOW!
     * (probably because document end has been reached)
     *
     * If part of a CallWriter chain, call finalise on
     * the original call writer
     *
     */
    public function finalise();
}