phper-framework / phper

The framework that allows us to write PHP extensions using pure and safe Rust whenever possible.
Other
290 stars 16 forks source link

Support class static properties #137

Closed jmjoy closed 10 months ago

jmjoy commented 11 months ago

How to add static variables

Should we add a method? class.add_static_property("count", Visibility::Public, "");

Alright, I will add it later.

Originally posted by @jmjoy in https://github.com/phper-framework/phper/issues/136#issuecomment-1804920673