diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-12 04:10:53 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-12 04:10:53 +0900 |
| commit | 2c1df4a7ba3a0ec0e9eb01aeb219eefad2c26018 (patch) | |
| tree | ed6323be4af282c985307150717ca2604ceb3472 /crates/shirabe-php-shim | |
| parent | 78a34c0ae1622c8a49fad17236c4d152c0153932 (diff) | |
| download | php-shirabe-2c1df4a7ba3a0ec0e9eb01aeb219eefad2c26018.tar.gz php-shirabe-2c1df4a7ba3a0ec0e9eb01aeb219eefad2c26018.tar.zst php-shirabe-2c1df4a7ba3a0ec0e9eb01aeb219eefad2c26018.zip | |
feat(port): port Tar.php
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!() } |
