| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | 1 | public function __construct(string $apiMethodName, string $authToken) |
|
| 21 | { |
||
| 22 | 1 | $this->apiMethodName = $apiMethodName; |
|
| 23 | 1 | $this->authToken = $authToken; |
|
| 24 | 1 | $this->mainElement = new SimpleXMLElement("<$this->apiMethodName></$this->apiMethodName>"); |
|
| 25 | 1 | $auth = $this->mainElement->addChild('auth'); |
|
| 26 | 1 | $auth->addAttribute('token', $this->authToken); |
|
| 27 | 1 | } |
|
| 53 |