| Conditions | 2 |
| Paths | 3 |
| Total Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function invite(Model\InStore\Invite $invite, HandlerStack $stack = null) |
||
| 23 | { |
||
| 24 | try { |
||
| 25 | $params = $this->generateParams($invite, $stack); |
||
| 26 | |||
| 27 | $this->getClient()->post( |
||
| 28 | 'invite', |
||
| 29 | $params |
||
| 30 | ); |
||
| 31 | } catch (BadResponseException $e) { |
||
| 32 | throw new ApiException( |
||
| 33 | $this->getSerializer()->deserialize( |
||
| 34 | (string) $e->getResponse()->getBody(), |
||
| 35 | ErrorResponse::class, |
||
| 36 | 'json' |
||
| 37 | ), |
||
| 38 | $e |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | |||
| 42 | return true; |
||
| 43 | } |
||
| 44 | } |
||
| 45 |