ListData   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
eloc 10
dl 0
loc 25
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A equals() 0 5 3
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 <[email protected]>
9
 *
10
 * Original code based on the CommonMark JS reference parser (https://bitly.com/commonmark-js)
11
 *  - (c) John MacFarlane
12
 *
13
 * For the full copyright and license information, please view the LICENSE
14
 * file that was distributed with this source code.
15
 */
16
17
namespace League\CommonMark\Extension\CommonMark\Node\Block;
18
19
class ListData
20
{
21
    /** @var int|null */
22
    public $start;
23
24
    /** @var int */
25
    public $padding = 0;
26
27
    /** @var string */
28
    public $type;
29
30
    /** @var string|null */
31
    public $delimiter;
32
33
    /** @var string|null */
34
    public $bulletChar;
35
36
    /** @var int */
37
    public $markerOffset;
38
39 108
    public function equals(ListData $data): bool
40
    {
41 108
        return $this->type === $data->type &&
42 108
            $this->delimiter === $data->delimiter &&
43 108
            $this->bulletChar === $data->bulletChar;
44
    }
45
}
46