We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1abeb1c commit b350ae6Copy full SHA for b350ae6
guide/src/macros/classes.md
@@ -85,6 +85,11 @@ pub fn throw_exception() -> PhpResult<i32> {
85
To implement an interface, use `#[implements(ce)]` where `ce` is an expression returning a `ClassEntry`.
86
The following example implements [`ArrayAccess`](https://www.php.net/manual/en/class.arrayaccess.php):
87
```rust,no_run
88
+# #![cfg_attr(windows, feature(abi_vectorcall))]
89
+# extern crate ext_php_rs;
90
+use ext_php_rs::prelude::*;
91
+use ext_php_rs::{exception::PhpException, zend::ce, types::Zval};
92
+
93
#[php_class]
94
#[implements(ce::arrayaccess())]
95
pub struct EvenNumbersArray;
0 commit comments