* Inspect the binding to return a json representation of the binding information * @param options - Options to control what information should be included
(options: BindingInspectOptions = {})
| 1003 | * @param options - Options to control what information should be included |
| 1004 | */ |
| 1005 | inspect(options: BindingInspectOptions = {}): JSONObject { |
| 1006 | options = { |
| 1007 | includeInjections: false, |
| 1008 | ...options, |
| 1009 | }; |
| 1010 | const json = this.toJSON(); |
| 1011 | if (options.includeInjections) { |
| 1012 | const injections = inspectInjections(this); |
| 1013 | if (Object.keys(injections).length) json.injections = injections; |
| 1014 | } |
| 1015 | return json; |
| 1016 | } |
| 1017 | |
| 1018 | /** |
| 1019 | * A static method to create a binding so that we can do |
nothing calls this directly
no test coverage detected