| 1 | <?php /** MicroType */ |
||
| 17 | class Type |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Return concrete object type |
||
| 21 | * |
||
| 22 | * @access public |
||
| 23 | * |
||
| 24 | * @param mixed $var object to scan |
||
| 25 | * |
||
| 26 | * @return string |
||
| 27 | * @static |
||
| 28 | */ |
||
| 29 | public static function getType($var) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Get public vars into object |
||
| 46 | * |
||
| 47 | * @access public |
||
| 48 | * |
||
| 49 | * @param mixed $object |
||
| 50 | * |
||
| 51 | * @return array |
||
| 52 | * @static |
||
| 53 | */ |
||
| 54 | public static function getVars($object) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Array walk recursive |
||
| 61 | * |
||
| 62 | * @access public |
||
| 63 | * |
||
| 64 | * @param array $data array to walk |
||
| 65 | * @param callable $function callable function |
||
| 66 | * |
||
| 67 | * @return array|mixed |
||
| 68 | * @static |
||
| 69 | */ |
||
| 70 | public static function arrayWalkRecursive(array $data, callable $function) |
||
| 82 | |||
| 83 | /** |
||
| 84 | * Get SubArray from array by keys |
||
| 85 | * |
||
| 86 | * @access public |
||
| 87 | * |
||
| 88 | * @param array $array |
||
| 89 | * @param array $keys |
||
| 90 | * |
||
| 91 | * @return array |
||
| 92 | * @static |
||
| 93 | */ |
||
| 94 | public static function getSubArrayFromArrayByKeys(array $array, array $keys) |
||
| 106 | } |
||
| 107 |