| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 70% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Document extends SolariumDocument { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Magic call method used to emulate getters as used by the template engine. |
||
| 11 | * |
||
| 12 | * @param string $name method name |
||
| 13 | * @param array $arguments method arguments |
||
| 14 | * @return mixed |
||
| 15 | */ |
||
| 16 | 7 | public function __call($name, $arguments) |
|
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return array |
||
| 29 | */ |
||
| 30 | public function getFieldNames() |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Backwards compatible implementation of the getField method. |
||
| 37 | * |
||
| 38 | * @deprecated Deprecated since EXT:solr 9.0.0 please use $document[$fieldName] instead without the array key 'value' |
||
| 39 | * @param $fieldName |
||
| 40 | * @return array|boolean |
||
| 41 | */ |
||
| 42 | 9 | public function getField($fieldName) |
|
| 47 | } |