aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-php-shim/src/lib.rs')
-rw-r--r--crates/shirabe-php-shim/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs
index 68cf03a..1c16ded 100644
--- a/crates/shirabe-php-shim/src/lib.rs
+++ b/crates/shirabe-php-shim/src/lib.rs
@@ -348,6 +348,10 @@ pub trait JsonSerializable {
fn json_serialize(&self) -> PhpMixed;
}
+pub trait Countable {
+ fn count(&self) -> i64;
+}
+
pub fn in_array(needle: PhpMixed, haystack: &PhpMixed, strict: bool) -> bool {
todo!()
}