Failed Conditions
Push — psr2 ( de3699...36dc94 )
by Andreas
06:50 queued 03:31
created

inc/ParserMode/ModeInterface.php (1 issue)

Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace dokuwiki\ParserMode;
4
5
/**
6
 * Defines a mode (syntax component) in the Parser
7
 */
8
interface ModeInterface
9
{
10
    /**
11
     * returns a number used to determine in which order modes are added
12
     *
13
     * @return int;
0 ignored issues
show
The doc-type int; could not be parsed: Expected "|" or "end of type", but got ";" at position 3. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
14
     */
15
    public function getSort();
16
17
    /**
18
     * Called before any calls to connectTo
19
     *
20
     * @return void
21
     */
22
    public function preConnect();
23
24
    /**
25
     * Connects the mode
26
     *
27
     * @param string $mode
28
     * @return void
29
     */
30
    public function connectTo($mode);
31
32
    /**
33
     * Called after all calls to connectTo
34
     *
35
     * @return void
36
     */
37
    public function postConnect();
38
39
    /**
40
     * Check if given mode is accepted inside this mode
41
     *
42
     * @param string $mode
43
     * @return bool
44
     */
45
    public function accepts($mode);
46
}
47