protected function getFunctions($type = null)
    {
        $funcs = \get_defined_functions();

        if ($type) {
            return $funcs[$type];
        } else {
            return \array_merge($funcs['internal'], $funcs['user']);
        }
    }
protected function getFunctions($type = null)
    {
        $funcs = \get_defined_functions();

        if ($type) {
            return $funcs[$type];
        } else {
            return \array_merge($funcs['internal'], $funcs['user']);
        }
    }
protected function getFunctions ( $ type = null ) { $ funcs = \ get_defined_functions ( ) ; if ( $ type ) { return $ funcs [ $ type ] ; } else { return \ array_merge ( $ funcs [ 'internal' ] , $ funcs [ 'user' ] ) ; } }
Get defined functions.

Optionally limit functions to "user" or "internal" functions.

@param null|string $type "user" or "internal" (default: both)

@return array
Get defined functions .