| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 69 | protected function run($method, $endpoint, array $data = []) |
||
| 70 | { |
||
| 71 | if (!$this->branchId) { |
||
| 72 | $this->setBranch(1); |
||
| 73 | } |
||
| 74 | |||
| 75 | $request = new Request($this->client->getHandler()); |
||
| 76 | |||
| 77 | return $request->run($method, $this->client->makeUrl($endpoint), array_merge($data, [ |
||
| 78 | 'headers' => [ |
||
| 79 | 'X-Session-ID' => $this->client->getToken(), |
||
| 80 | ], |
||
| 81 | ])); |
||
| 82 | } |
||
| 83 | } |
||
| 84 |