| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | class TranslateText extends Rpc |
||
| 35 | { |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $value |
||
| 39 | * |
||
| 40 | * @return $this |
||
| 41 | */ |
||
| 42 | public function withFromLang($value) |
||
| 43 | { |
||
| 44 | $this->data['FromLang'] = $value; |
||
| 45 | $this->options['form_params']['FromLang'] = $value; |
||
| 46 | |||
| 47 | return $this; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param string $value |
||
| 52 | * |
||
| 53 | * @return $this |
||
| 54 | */ |
||
| 55 | public function withToLang($value) |
||
| 56 | { |
||
| 57 | $this->data['ToLang'] = $value; |
||
| 58 | $this->options['form_params']['ToLang'] = $value; |
||
| 59 | |||
| 60 | return $this; |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param string $value |
||
| 65 | * |
||
| 66 | * @return $this |
||
| 67 | */ |
||
| 68 | public function withText($value) |
||
| 74 | } |
||
| 75 | } |
||
| 76 |