| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function jsonSerialize(): array { |
||
| 37 | $json = [ |
||
| 38 | 'id' => $this->getId(), |
||
| 39 | 'title' => $this->getTitle(), |
||
| 40 | 'icon_url' => $this->getIconUrl(), |
||
| 41 | 'order' => $this->getOrder(), |
||
| 42 | ]; |
||
| 43 | if ($this instanceof ISearchableReferenceProvider) { |
||
| 44 | $json['search_providers_ids'] = $this->getSupportedSearchProviderIds(); |
||
| 45 | } |
||
| 46 | return $json; |
||
| 47 | } |
||
| 49 |