Skip to main content

emit_phpdoc

Function emit_phpdoc 

Source
pub fn emit_phpdoc(
    out: &mut String,
    doc: &str,
    indent: &str,
    exception_class: &str,
)
Expand description

Emit PHPDoc-style comments (/** … */) Used for PHP classes, methods, and properties.

Translates rustdoc sections (# Arguments@param, # Returns@return, # Errors@throws, # Example```php fence) via render_phpdoc_sections.

exception_class is the PHP exception class name to use in @throws tags.