{% if is_optional %}
let {% if is_mut %}mut {% endif %}{{ php_name }}_core: Option<{{ core_import }}::{{ type_name }}> = {{ php_name }}.map(|v| v.clone().into());
{% else %}
let {% if is_mut %}mut {% endif %}{{ php_name }}_core: {{ core_import }}::{{ type_name }} = {{ php_name }}.clone().into();
{% endif %}
