Skip to main content

gen_php_error_methods_impl

Function gen_php_error_methods_impl 

Source
pub fn gen_php_error_methods_impl(error: &ErrorDef, core_import: &str) -> String
Expand description

Generate a #[php_class] + #[php_impl] block for the error type, storing the whitelisted introspection method return values as Rust fields exposed via #[php_method].

Returns an empty string when error.methods is empty.