| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class ParamsListService |
||
| 20 | { |
||
| 21 | protected $serviceName; |
||
| 22 | protected $routeId; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * ParamsListService constructor. |
||
| 26 | * |
||
| 27 | * @param string $paramsList |
||
| 28 | */ |
||
| 29 | public function __construct($paramsList) |
||
| 30 | { |
||
| 31 | list($this->serviceName, $this->routeId) = explode('&', $paramsList); |
||
| 32 | $this->serviceName = str_replace('service=', '', $this->serviceName); |
||
| 33 | $this->routeId = str_replace('routeId=', '', $this->routeId); |
||
| 34 | $this->routeId = str_replace('_', '/', $this->routeId); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getServiceName() |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getRouteId() |
||
| 51 | } |
||
| 52 | } |
||
| 53 |