alef 0.114.0

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
{% for class in classes %}{% if not class.root %}
class {{ class.name }} extends {{ class.parent or '\\Exception' }}
{
{% for field in class.fields %}    public {{ field.php_type }} ${{ field.php_name }};
{% endfor %}{% for field in class.info %}    /** {{ field.doc }} */
    public function {{ field.php_name }}(): {{ field.php_type }} { throw new \RuntimeException('Not implemented.'); }
{% endfor %}}
{% endif %}{% endfor %}