| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | 6 | public function __construct($url, $name) |
|
| 13 | {
|
||
| 14 | |||
| 15 | /* |
||
| 16 | @todo Throw exception for invalid names. |
||
| 17 | Diffbot HQ will provide regex for invalid chars in API names. Once |
||
| 18 | done, modify this case to throw exceptions for invalid ones, and write |
||
| 19 | test cases. |
||
| 20 | |||
| 21 | Note that all API names with ? and / in their name currently fail to |
||
| 22 | execute in the Diffbot test runner, so it's questionable whether they're |
||
| 23 | even supposed to be supported. |
||
| 24 | */ |
||
| 25 | |||
| 26 | 6 | parent::__construct($url); |
|
| 27 | 6 | $this->apiUrl .= '/' . trim($name); |
|
| 28 | 6 | } |
|
| 29 | } |
||
| 30 |