| 1 | <?php |
||
| 15 | final class Util |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * A wrapper for var_export, having list-style arrays (0-indexed incremental keys) compile without the keys in |
||
| 19 | * the code. |
||
| 20 | * |
||
| 21 | * @param mixed $var |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | 1 | public static function toPhp($var) |
|
| 47 | |||
| 48 | |||
| 49 | /** |
||
| 50 | * Returns the type of the variable, and it's class if it's an object. |
||
| 51 | * |
||
| 52 | * @param mixed $what |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | 1 | public static function typeOf($what) |
|
| 59 | } |