Conditions | 9 |
Paths | 16 |
Total Lines | 21 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 9.4867 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
21 | 47 | protected function serializeActionableProperties(): array |
|
22 | { |
||
23 | 47 | $data = []; |
|
24 | |||
25 | 47 | if ($this->onFocus !== null && !empty($this->onFocus)) { |
|
26 | 1 | $data['onFocus'] = $this->onFocus; |
|
27 | } |
||
28 | |||
29 | 47 | if ($this->onBlur !== null && !empty($this->onBlur)) { |
|
30 | 1 | $data['onBlur'] = $this->onBlur; |
|
31 | } |
||
32 | |||
33 | 47 | if ($this->handleKeyDown !== null && !empty($this->handleKeyDown)) { |
|
34 | $data['handleKeyDown'] = $this->handleKeyDown; |
||
35 | } |
||
36 | |||
37 | 47 | if ($this->handleKeyUp !== null && !empty($this->handleKeyUp)) { |
|
38 | $data['handleKeyUp'] = $this->handleKeyUp; |
||
39 | } |
||
40 | |||
41 | 47 | return $data; |
|
42 | } |
||
44 |