| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class SpellCheckResponse extends ApiResponseAbstract |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Returns an associative array of corrections |
||
| 16 | * |
||
| 17 | * @return string[] |
||
| 18 | */ |
||
| 19 | public function getCorrections(): array |
||
| 20 | { |
||
| 21 | return (array)$this->getData(); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Sets an array of corrections |
||
| 26 | * |
||
| 27 | * @param string[] $corrections |
||
| 28 | */ |
||
| 29 | public function setCorrections(array $corrections): void |
||
| 32 | } |
||
| 33 | } |
||
| 34 |