| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | class TakeAccessToken extends Roa |
||
| 31 | { |
||
| 32 | /** @var string */ |
||
| 33 | public $pathPattern = '/btrip/open/access-token/take'; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $value |
||
| 37 | * |
||
| 38 | * @return $this |
||
| 39 | */ |
||
| 40 | public function withAppKey($value) |
||
| 41 | { |
||
| 42 | $this->data['AppKey'] = $value; |
||
| 43 | $this->options['query']['app_key'] = $value; |
||
| 44 | |||
| 45 | return $this; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param string $value |
||
| 50 | * |
||
| 51 | * @return $this |
||
| 52 | */ |
||
| 53 | public function withAppSecret($value) |
||
| 59 | } |
||
| 60 | } |
||
| 61 |