| Conditions | 4 |
| Paths | 8 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | public function toArray(): array |
||
| 40 | { |
||
| 41 | $data = [ |
||
| 42 | 'proximityUUID' => $this->proximityUUID->toString(), |
||
| 43 | ]; |
||
| 44 | |||
| 45 | if (isset($this->minorIdentifier)) { |
||
| 46 | $data['minor'] = $this->minorIdentifier; |
||
| 47 | } |
||
| 48 | |||
| 49 | if (isset($this->majorIdentifier)) { |
||
| 50 | $data['major'] = $this->majorIdentifier; |
||
| 51 | } |
||
| 52 | |||
| 53 | if (isset($this->relevantText)) { |
||
| 54 | $data['relevantText'] = $this->relevantText; |
||
| 55 | } |
||
| 56 | |||
| 57 | return $data; |
||
| 58 | } |
||
| 60 |