|
| 1 | +[ |
| 2 | + { |
| 3 | + "file": { |
| 4 | + "description": "Namespaced name-resolution fixture.", |
| 5 | + "long_description": "", |
| 6 | + "tags": [] |
| 7 | + }, |
| 8 | + "path": "namespaced-uses.inc", |
| 9 | + "root": "{{ROOT}}", |
| 10 | + "functions": [ |
| 11 | + { |
| 12 | + "name": "namespaced_func", |
| 13 | + "namespace": "My\\Plugin", |
| 14 | + "aliases": { |
| 15 | + "Thing": "\\Other\\Thing", |
| 16 | + "Aliased": "\\Some\\Long\\ClassName", |
| 17 | + "helper": "\\Other\\helper" |
| 18 | + }, |
| 19 | + "line": 30, |
| 20 | + "end_line": 32, |
| 21 | + "arguments": [ |
| 22 | + { |
| 23 | + "name": "$t", |
| 24 | + "default": null, |
| 25 | + "type": "\\Other\\Thing" |
| 26 | + } |
| 27 | + ], |
| 28 | + "doc": { |
| 29 | + "description": "", |
| 30 | + "long_description": "", |
| 31 | + "tags": [] |
| 32 | + }, |
| 33 | + "hooks": [], |
| 34 | + "uses": { |
| 35 | + "methods": [ |
| 36 | + { |
| 37 | + "name": "create", |
| 38 | + "class": "\\Some\\Long\\ClassName", |
| 39 | + "static": true, |
| 40 | + "line": 31, |
| 41 | + "end_line": 31 |
| 42 | + } |
| 43 | + ] |
| 44 | + } |
| 45 | + } |
| 46 | + ], |
| 47 | + "classes": [ |
| 48 | + { |
| 49 | + "name": "Widget", |
| 50 | + "namespace": "My\\Plugin", |
| 51 | + "line": 12, |
| 52 | + "end_line": 28, |
| 53 | + "final": false, |
| 54 | + "abstract": false, |
| 55 | + "extends": "\\WP_Widget", |
| 56 | + "implements": [ |
| 57 | + "\\Other\\Thing" |
| 58 | + ], |
| 59 | + "properties": [], |
| 60 | + "methods": [ |
| 61 | + { |
| 62 | + "name": "render", |
| 63 | + "namespace": "My\\Plugin", |
| 64 | + "aliases": { |
| 65 | + "Thing": "\\Other\\Thing", |
| 66 | + "Aliased": "\\Some\\Long\\ClassName", |
| 67 | + "helper": "\\Other\\helper" |
| 68 | + }, |
| 69 | + "line": 19, |
| 70 | + "end_line": 27, |
| 71 | + "final": false, |
| 72 | + "abstract": false, |
| 73 | + "static": false, |
| 74 | + "visibility": "public", |
| 75 | + "arguments": [ |
| 76 | + { |
| 77 | + "name": "$t", |
| 78 | + "default": null, |
| 79 | + "type": "\\Other\\Thing" |
| 80 | + } |
| 81 | + ], |
| 82 | + "doc": { |
| 83 | + "description": "Render.", |
| 84 | + "long_description": "", |
| 85 | + "tags": [ |
| 86 | + { |
| 87 | + "name": "param", |
| 88 | + "content": "A thing.", |
| 89 | + "types": [ |
| 90 | + "\\Other\\Thing" |
| 91 | + ], |
| 92 | + "variable": "$t" |
| 93 | + }, |
| 94 | + { |
| 95 | + "name": "return", |
| 96 | + "content": "", |
| 97 | + "types": [ |
| 98 | + "\\Some\\Long\\ClassName" |
| 99 | + ] |
| 100 | + } |
| 101 | + ] |
| 102 | + }, |
| 103 | + "uses": { |
| 104 | + "methods": [ |
| 105 | + { |
| 106 | + "name": "__construct", |
| 107 | + "class": "\\Some\\Long\\ClassName", |
| 108 | + "static": false, |
| 109 | + "line": 20, |
| 110 | + "end_line": 20 |
| 111 | + }, |
| 112 | + { |
| 113 | + "name": "make", |
| 114 | + "class": "\\Other\\Thing", |
| 115 | + "static": true, |
| 116 | + "line": 21, |
| 117 | + "end_line": 21 |
| 118 | + }, |
| 119 | + { |
| 120 | + "name": "helper", |
| 121 | + "class": "\\My\\Plugin\\Widget", |
| 122 | + "static": true, |
| 123 | + "line": 22, |
| 124 | + "end_line": 22 |
| 125 | + }, |
| 126 | + { |
| 127 | + "name": "widget", |
| 128 | + "class": "\\WP_Widget", |
| 129 | + "static": true, |
| 130 | + "line": 23, |
| 131 | + "end_line": 23 |
| 132 | + }, |
| 133 | + { |
| 134 | + "name": "__construct", |
| 135 | + "class": "\\DateTime", |
| 136 | + "static": false, |
| 137 | + "line": 26, |
| 138 | + "end_line": 26 |
| 139 | + } |
| 140 | + ], |
| 141 | + "functions": [ |
| 142 | + { |
| 143 | + "name": "\\do_action", |
| 144 | + "line": 24, |
| 145 | + "end_line": 24 |
| 146 | + }, |
| 147 | + { |
| 148 | + "name": "\\Other\\helper", |
| 149 | + "line": 25, |
| 150 | + "end_line": 25 |
| 151 | + } |
| 152 | + ] |
| 153 | + } |
| 154 | + } |
| 155 | + ], |
| 156 | + "doc": { |
| 157 | + "description": "", |
| 158 | + "long_description": "", |
| 159 | + "tags": [] |
| 160 | + } |
| 161 | + } |
| 162 | + ] |
| 163 | + } |
| 164 | +] |
0 commit comments