Passed
Push — develop ( b91919...1ff2d0 )
by Endre
05:15
created

src/Application/MenuOpenStateAdapter.ts   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 14
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A MenuOpenStateAdapter.onChange 0 3 1
1
import {IObserverAdapter} from '@enbock/state-value-observer/Observer';
2
3
export default class MenuOpenStateAdapter implements IObserverAdapter<boolean> {
4
  private currentState: boolean;
5
6
  constructor() {
7 2
    this.currentState = false;
8
  }
9
10
  onChange(newValue: boolean): void {
11 1
    this.currentState = newValue;
12
  }
13
}
14