Helper.php
public static function toNative($callback)
    {
        if (!is_array($callback)) {
            return self::getNative($callback);
        }
        if (!array_key_exists('0', $callback)) {
            return self::getFromDict($callback);
        }
        if (!array_key_exists(2, $callback)) {
            return self::getNative($callback);
        }
        return self::getFromList($callback);
    }
public static function toNative($callback)
    {
        if (!is_array($callback)) {
            return self::getNative($callback);
        }
        if (!array_key_exists('0', $callback)) {
            return self::getFromDict($callback);
        }
        if (!array_key_exists(2, $callback)) {
            return self::getNative($callback);
        }
        return self::getFromList($callback);
    }
public static function toNative ( $ callback ) { if ( ! is_array ( $ callback ) ) { return self :: getNative ( $ callback ) ; } if ( ! array_key_exists ( '0' , $ callback ) ) { return self :: getFromDict ( $ callback ) ; } if ( ! array_key_exists ( 2 , $ callback ) ) { return self :: getNative ( $ callback ) ; } return self :: getFromList ( $ callback ) ; }
Separates a native callback and bound arguments

@param mixed $callback
a callback in the extended format
@return array
[native => ..., args => array]
@throws \axy\callbacks\errors\InvalidFormat
the callback has invalid format
Separates a native callback and bound arguments