Passed
Pull Request — master (#442)
by
unknown
02:43
created

src/Infrastructure/Tables/HtmlColumn.ts   A

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 14
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 10
mnd 0
bc 0
fnc 4
dl 0
loc 14
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10

2 Functions

Rating   Name   Duplication   Size   Complexity  
A HtmlColumn.toString 0 3 1
A HtmlColumn.getRaw 0 3 1
1
export class HtmlColumn {
2
  public readonly isRaw = true;
3
4
  constructor(private readonly text: string, private readonly html: string) {}
5
6
  public getRaw(): string {
7
    return this.html;
8
  }
9
10
  public toString() {
11
    return this.text;
12
  }
13
}
14