From 8142c4b61eef2047148b331550a413e532e7bd33 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 15 May 2026 23:02:16 +0900 Subject: feat(port): port Runtime.php --- crates/shirabe/src/platform/runtime.rs | 48 ++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'crates/shirabe/src/platform') diff --git a/crates/shirabe/src/platform/runtime.rs b/crates/shirabe/src/platform/runtime.rs index 246774c..4c9c3f5 100644 --- a/crates/shirabe/src/platform/runtime.rs +++ b/crates/shirabe/src/platform/runtime.rs @@ -1 +1,49 @@ //! ref: composer/src/Composer/Platform/Runtime.php + +use anyhow::Result; +use shirabe_php_shim::PhpMixed; + +#[derive(Debug)] +pub struct Runtime; + +impl Runtime { + pub fn has_constant(&self, constant_name: &str, class: Option<&str>) -> bool { + todo!() + } + + pub fn get_constant(&self, constant_name: &str, class: Option<&str>) -> PhpMixed { + todo!() + } + + pub fn has_function(&self, f: &str) -> bool { + todo!() + } + + pub fn invoke(&self, callable: Box) -> PhpMixed>, arguments: Vec) -> PhpMixed { + todo!() + } + + pub fn has_class(&self, class: &str) -> bool { + todo!() + } + + pub fn construct(&self, class: &str, arguments: Vec) -> Result { + todo!() + } + + pub fn get_extensions(&self) -> Vec { + todo!() + } + + pub fn get_extension_version(&self, extension: &str) -> String { + todo!() + } + + pub fn get_extension_info(&self, extension: &str) -> Result { + todo!() + } + + pub fn parse_html_extension_info(html: &str) -> String { + todo!() + } +} -- cgit v1.3.1