diff options
Diffstat (limited to 'crates/shirabe-php-shim')
| -rw-r--r-- | crates/shirabe-php-shim/src/lib.rs | 30 |
1 files changed, 30 insertions, 0 deletions
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 @@ -59,6 +59,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<PharFileInfo> { + todo!() + } + + pub fn iter(&self) -> impl Iterator<Item = PharFileInfo> { + todo!(); + std::iter::empty() + } + pub fn extract_to(&self, a: &str, b: Option<()>, c: bool) { todo!() } |
