Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function getConcrete($abstract) |
||
36 | { |
||
37 | if (0 === strpos($abstract, '\\')) { |
||
38 | return $abstract; |
||
39 | } |
||
40 | |||
41 | $abstract = str_replace('_', '\\', $abstract); |
||
42 | |||
43 | if (false === strpos($abstract, '\\')) { |
||
44 | $abstract .= '\\'; |
||
45 | } |
||
46 | |||
47 | return '\\CryptoMarkets\\'.$abstract.'Gateway'; |
||
48 | } |
||
49 | } |
||
50 |