Subversion-Projekte lars-tiefland.laravel_shop

Revision

Zur aktuellen Revision | Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
/*
6
 * This file is part of the league/commonmark package.
7
 *
8
 * (c) Colin O'Dell <colinodell@gmail.com>
9
 *
10
 * Original code based on the CommonMark JS reference parser (https://bitly.com/commonmark-js)
11
 *  - (c) John MacFarlane
12
 *
13
 * Additional emphasis processing code based on commonmark-java (https://github.com/atlassian/commonmark-java)
14
 *  - (c) Atlassian Pty Ltd
15
 *
16
 * For the full copyright and license information, please view the LICENSE
17
 * file that was distributed with this source code.
18
 */
19
 
20
namespace League\CommonMark\Delimiter\Processor;
21
 
22
interface DelimiterProcessorCollectionInterface extends \Countable
23
{
24
    /**
25
     * Add the given delim processor to the collection
26
     *
27
     * @param DelimiterProcessorInterface $processor The delim processor to add
28
     *
29
     * @throws \InvalidArgumentException Exception will be thrown if attempting to add multiple processors for the same character
30
     */
31
    public function add(DelimiterProcessorInterface $processor): void;
32
 
33
    /**
34
     * Returns the delim processor which handles the given character if one exists
35
     */
36
    public function getDelimiterProcessor(string $char): ?DelimiterProcessorInterface;
37
 
38
    /**
39
     * Returns an array of delimiter characters who have associated processors
40
     *
41
     * @return string[]
42
     */
43
    public function getDelimiterCharacters(): array;
44
}