Skip to main content

gen_visitor_interface

Function gen_visitor_interface 

Source
pub fn gen_visitor_interface(
    trait_type: &TypeDef,
    bridge_cfg: &TraitBridgeConfig,
    namespace: &str,
    type_paths: &HashMap<String, String>,
) -> String
Expand description

Generate a PHP interface stub definition for the trait. This allows PHP users to implement the interface and pass their implementation to functions.