MethodParseErrors.js

{
    "type": "file",
    "namespace": "",
    "class": [
        {
            "type": "class",
            "name": "Sample",
            "extends": "cats",
            "declaration": "class Sample extends cats",
            "methods": [
                {
                    "type": "method",
                    "args": [],
                    "modifiers": [
                        "public"
                    ],
                    "name": "cats",
                    "body": [],
                    "declaration": "public function cats()"
                },
                {
                    "type": "method",
                    "args": [
                        {
                            "type": "arg",
                            "name": "arg",
                            "declaration": "$arg"
                        }
                    ],
                    "modifiers": [
                        "public"
                    ],
                    "name": "dogs",
                    "body": [],
                    "declaration": "public function dogs($arg)"
                },
                {
                    "type": "method",
                    "args": [
                        {
                            "type": "arg",
                            "name": "arg",
                            "value": "1",
                            "declaration": "$arg=1"
                        }
                    ],
                    "modifiers": [
                        "public"
                    ],
                    "name": "dogs2",
                    "body": [],
                    "declaration": "public function dogs2($arg=1)"
                },
                {
                    "type": "method",
                    "args": [
                        {
                            "type": "arg",
                            "name": "arg",
                            "value": "'yes'",
                            "declaration": "$arg='yes'"
                        }
                    ],
                    "modifiers": [
                        "public"
                    ],
                    "name": "dogs_3",
                    "body": [],
                    "declaration": "public function dogs_3($arg='yes')"
                },
                {
                    "type": "method",
                    "args": [],
                    "docblock": {
                        "type": "docblock",
                        "description": "bears are so cute"
                    },
                    "modifiers": [
                        "public"
                    ],
                    "name": "bears",
                    "body": [],
                    "declaration": "public function bears()"
                },
                {
                    "type": "method",
                    "args": [],
                    "docblock": {
                        "type": "docblock",
                        "description": "bears are so cute"
                    },
                    "modifiers": [
                        "public"
                    ],
                    "name": "bears_are_best",
                    "body": [],
                    "declaration": "public function bears_are_best()"
                },
                {
                    "type": "method",
                    "args": [],
                    "modifiers": [
                        "public"
                    ],
                    "name": "bears_do_stuff",
                    "body": [],
                    "declaration": "public function bears_do_stuff()"
                },
                {
                    "type": "method",
                    "args": [],
                    "modifiers": [
                        "public"
                    ],
                    "name": "bears_cuddle_stuff",
                    "body": [],
                    "declaration": "public function bears_cuddle_stuff()"
                },
                {
                    "type": "method",
                    "args": [],
                    "modifiers": [
                        "public"
                    ],
                    "name": "bears_nest",
                    "body": [],
                    "declaration": "public function bears_nest()"
                },
                {
                    "type": "method",
                    "args": [
                        {
                            "type": "arg",
                            "name": "srcCode",
                            "declaration": "$srcCode"
                        }
                    ],
                    "docblock": {
                        "type": "docblock",
                        "description": "Replaces inline PHP code with placeholder, indexes the placeholder, and returns the modified code\n",
                        "attribute": [
                            {
                                "type": "attribute",
                                "name": "param",
                                "description": "mixed $srcCode - The source code"
                            },
                            {
                                "type": "attribute",
                                "name": "return",
                                "description": "string - source code with all PHP replaced by codeIds"
                            }
                        ]
                    },
                    "modifiers": [
                        "public"
                    ],
                    "name": "cleanSource",
                    "return_types": [
                        "string"
                    ],
                    "body": [],
                    "declaration": "public function cleanSource($srcCode): string"
                },
                {
                    "type": "method",
                    "args": [],
                    "modifiers": [
                        "public"
                    ],
                    "name": "makes_it_11",
                    "body": [],
                    "declaration": "public function makes_it_11()"
                },
                {
                    "type": "method",
                    "args": [],
                    "modifiers": [
                        "public"
                    ],
                    "name": "output",
                    "return_types": [
                        "string"
                    ],
                    "body": {
                        "_source": null,
                        "_type": "array"
                    },
                    "declaration": "public function output(): string"
                },
                {
                    "type": "method",
                    "args": [],
                    "modifiers": [
                        "public"
                    ],
                    "name": "ok_13",
                    "body": [],
                    "declaration": "public function ok_13()"
                },
                {
                    "type": "method",
                    "args": [
                        {
                            "type": "arg",
                            "arg_types": [
                                "string"
                            ],
                            "name": "file",
                            "declaration": "string $file"
                        },
                        {
                            "type": "arg",
                            "name": "chmodTo",
                            "value": "null",
                            "declaration": "$chmodTo=null"
                        }
                    ],
                    "modifiers": [
                        "public"
                    ],
                    "name": "writeTo",
                    "return_types": [
                        "bool"
                    ],
                    "body": [],
                    "declaration": "public function writeTo(string $file, $chmodTo=null): bool"
                },
                {
                    "type": "method",
                    "args": [],
                    "modifiers": [
                        "public"
                    ],
                    "name": "yep_15",
                    "body": [],
                    "declaration": "public function yep_15()"
                },
                {
                    "type": "method",
                    "args": [
                        {
                            "type": "arg",
                            "name": "html",
                            "declaration": "$html"
                        }
                    ],
                    "modifiers": [
                        "public"
                    ],
                    "name": "__construct",
                    "body": [],
                    "declaration": "public function __construct($html)"
                },
                {
                    "type": "method",
                    "args": [],
                    "modifiers": [
                        "public"
                    ],
                    "name": "okay_17",
                    "body": [],
                    "declaration": "public function okay_17()"
                },
                {
                    "type": "method",
                    "args": [
                        {
                            "type": "arg",
                            "name": "withPHP",
                            "value": "true",
                            "declaration": "$withPHP=true"
                        }
                    ],
                    "modifiers": [
                        "public"
                    ],
                    "name": "output2",
                    "body": {
                        "_source": null,
                        "_type": "array"
                    },
                    "declaration": "public function output2($withPHP=true)"
                },
                {
                    "type": "method",
                    "args": [],
                    "modifiers": [
                        "public"
                    ],
                    "name": "now_19",
                    "body": [],
                    "declaration": "public function now_19()"
                },
                {
                    "type": "method",
                    "args": [
                        {
                            "type": "arg",
                            "name": "html",
                            "declaration": "$html"
                        },
                        {
                            "type": "arg",
                            "name": "withPHP",
                            "value": "true",
                            "declaration": "$withPHP=true"
                        }
                    ],
                    "modifiers": [
                        "public"
                    ],
                    "name": "fill_php",
                    "body": [],
                    "declaration": "public function fill_php($html, $withPHP=true)"
                },
                {
                    "type": "method",
                    "args": [],
                    "modifiers": [
                        "public"
                    ],
                    "name": "ugh_21",
                    "body": [],
                    "declaration": "public function ugh_21()"
                },
                {
                    "type": "method",
                    "args": [
                        {
                            "type": "arg",
                            "arg_types": [
                                "string"
                            ],
                            "name": "tableName",
                            "declaration": "string $tableName"
                        },
                        {
                            "type": "arg",
                            "arg_types": [
                                "array"
                            ],
                            "name": "colDefinitions",
                            "declaration": "array $colDefinitions"
                        },
                        {
                            "type": "arg",
                            "arg_types": [
                                "bool"
                            ],
                            "name": "recreateIfExists",
                            "value": "false",
                            "declaration": "bool $recreateIfExists=false"
                        }
                    ],
                    "modifiers": [
                        "public"
                    ],
                    "name": "create",
                    "body": {
                        "_source": null,
                        "_type": "array"
                    },
                    "declaration": "public function create(string $tableName, array $colDefinitions, bool $recreateIfExists=false)"
                },
                {
                    "type": "method",
                    "args": [],
                    "modifiers": [
                        "public"
                    ],
                    "name": "its_23",
                    "body": [],
                    "declaration": "public function its_23()"
                }
            ]
        }
    ]
}