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