From 2c1df4a7ba3a0ec0e9eb01aeb219eefad2c26018 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 12 May 2026 04:10:53 +0900 Subject: feat(port): port Tar.php --- crates/shirabe-php-shim/src/lib.rs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'crates/shirabe-php-shim') diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index 7fd7ec1..33b3df3 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -58,6 +58,23 @@ impl Phar { } } +#[derive(Debug)] +pub struct PharFileInfo; + +impl PharFileInfo { + pub fn get_content(&self) -> String { + todo!() + } + + pub fn get_basename(&self) -> String { + todo!() + } + + pub fn is_dir(&self) -> bool { + todo!() + } +} + #[derive(Debug)] pub struct PharData { path: String, @@ -68,6 +85,19 @@ impl PharData { todo!() } + pub fn valid(&self) -> bool { + todo!() + } + + pub fn get(&self, key: &str) -> Option { + todo!() + } + + pub fn iter(&self) -> impl Iterator { + todo!(); + std::iter::empty() + } + pub fn extract_to(&self, a: &str, b: Option<()>, c: bool) { todo!() } -- cgit v1.3.1