fn to_stub(&self) -> Result<String, FmtError> {
        let mut buf = String::new();
        self.fmt_stub(&mut buf)?;
        Ok(buf)
    }
Converts the implementor into PHP code, represented as a PHP stub.
Returned as a string.

# Returns

Returns a string on success.

# Errors

Returns an error if there was an error writing into the string.
src/describe/stub.rs