| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public static function create(ThreePlCentral $threepl, string $method, string $url): RequestInterface |
||
| 15 | { |
||
| 16 | $classname = self::$class; |
||
| 17 | $instance = new $classname($method, $url); |
||
| 18 | $instance->setId($threepl->getId()); |
||
| 19 | $instance->setCustomerId($threepl->getCustomerId()); |
||
| 20 | $instance->setFacilityId($threepl->getFacilityId()); |
||
| 21 | $instance->setLogin($threepl->getLogin()); |
||
| 22 | $instance->setPassword($threepl->getPassword()); |
||
| 23 | return $instance; |
||
| 24 | } |
||
| 25 | } |
||
| 26 |