diff options
Diffstat (limited to 'crates/shirabe-php-shim')
| -rw-r--r-- | crates/shirabe-php-shim/Cargo.toml | 3 | ||||
| -rw-r--r-- | crates/shirabe-php-shim/src/lib.rs | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/crates/shirabe-php-shim/Cargo.toml b/crates/shirabe-php-shim/Cargo.toml index d565ea7..4256d47 100644 --- a/crates/shirabe-php-shim/Cargo.toml +++ b/crates/shirabe-php-shim/Cargo.toml @@ -2,3 +2,6 @@ name = "shirabe-php-shim" version.workspace = true edition.workspace = true + +[dependencies] +indexmap.workspace = true diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index b5cd9c3..df2a0c3 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -1,3 +1,16 @@ +use indexmap::IndexMap; + +#[derive(Debug)] +pub enum PhpMixed { + Null, + Bool(bool), + Int(i64), + Float(f64), + String(String), + List(Vec<Box<PhpMixed>>), + Array(IndexMap<String, Box<PhpMixed>>), +} + #[derive(Debug)] pub struct Exception { pub message: String, |
