ProsemirrorException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getExtraData() 0 3 1
A addExtraData() 0 3 1
1
<?php
2
3
namespace dokuwiki\plugin\prosemirror;
4
5
/**
6
 * Class ProsemirrorException
7
 *
8
 * A translatable exception
9
 *
10
 * @package dokuwiki\plugin\prosemirror
11
 */
12
class ProsemirrorException extends \RuntimeException
13
{
14
    public $data = [];
15
16
    /**
17
     * @param string $key
18
     * @param mixed $data
19
     */
20
    public function addExtraData($key, $data)
21
    {
22
        $this->data[$key] = $data;
23
    }
24
25
    public function getExtraData()
26
    {
27
        return $this->data;
28
    }
29
}
30