| Total Complexity | 6 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class Dumper |
||
| 10 | { |
||
| 11 | protected static $cloner; |
||
| 12 | |||
| 13 | public static function dump(...$args) |
||
| 14 | { |
||
| 15 | if (! static::$cloner instanceOf VarCloner) { |
||
| 16 | static::$cloner = new VarCloner; |
||
| 17 | } |
||
| 18 | |||
| 19 | $dumper = static::getDumper(); |
||
| 20 | |||
| 21 | foreach ($args as $arg) { |
||
| 22 | $dumper->dump( |
||
| 23 | static::$cloner->cloneVar($arg) |
||
| 24 | ); |
||
| 25 | } |
||
| 26 | |||
| 27 | return true; |
||
| 28 | } |
||
| 29 | |||
| 30 | public static function getDumper() |
||
| 37 | } |
||
| 38 | } |
||
| 39 |