PHPCD\PHPCD::info PHP Method

info() public method

If both $class_name and $pattern are setted, it will list the class's methods, constants, and properties, filted by pattern. If only $pattern is setted, it will list all the defined function (including the PHP's builtin function', filted by pattern.
public info ( $class_name, $pattern, $static_mode = 'both', $public_only = true )
    public function info($class_name, $pattern, $static_mode = 'both', $public_only = true)
    {
        if ($class_name) {
            $static_mode = $this->translateStaticMode($static_mode);
            return $this->classInfo($class_name, $pattern, $static_mode, $public_only);
        }
        if ($pattern) {
            return $this->functionOrConstantInfo($pattern);
        }
        return [];
    }