StringContainerInterface
last analyzed

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 18
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
addLine() 0 1 ?
getStringContent() 0 1 ?
handleRemainingContents() 0 1 ?
1
<?php
2
3
/*
4
 * This file is part of the league/commonmark package.
5
 *
6
 * (c) Colin O'Dell <[email protected]>
7
 *
8
 * Original code based on the CommonMark JS reference parser (https://bitly.com/commonmark-js)
9
 *  - (c) John MacFarlane
10
 *
11
 * For the full copyright and license information, please view the LICENSE
12
 * file that was distributed with this source code.
13
 */
14
15
namespace League\CommonMark\Block\Element;
16
17
use League\CommonMark\ContextInterface;
18
use League\CommonMark\Cursor;
19
20
/**
21
 * Interface for a block which can contain line(s) of strings
22
 */
23
interface StringContainerInterface
24
{
25
    /**
26
     * @param string $line
27
     */
28
    public function addLine(string $line);
29
30
    /**
31
     * @return string
32
     */
33
    public function getStringContent(): string;
34
35
    /**
36
     * @param ContextInterface $context
37
     * @param Cursor           $cursor
38
     */
39
    public function handleRemainingContents(ContextInterface $context, Cursor $cursor);
40
}
41