aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/dependency_resolver/operation/operation_interface.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-12 03:34:20 +0900
committernsfisis <nsfisis@gmail.com>2026-05-12 03:34:20 +0900
commit3f334d35e62dc9b1cbb06a71781a942ab39c64d4 (patch)
tree1a387f7716b5e8f0670d9c4329aab4f3e00d44cd /crates/shirabe/src/dependency_resolver/operation/operation_interface.rs
parent9a9582e9476eb73fb51413d290cbfccbc7b36f25 (diff)
downloadphp-shirabe-3f334d35e62dc9b1cbb06a71781a942ab39c64d4.tar.gz
php-shirabe-3f334d35e62dc9b1cbb06a71781a942ab39c64d4.tar.zst
php-shirabe-3f334d35e62dc9b1cbb06a71781a942ab39c64d4.zip
feat(port): port OperationInterface.php
Diffstat (limited to 'crates/shirabe/src/dependency_resolver/operation/operation_interface.rs')
-rw-r--r--crates/shirabe/src/dependency_resolver/operation/operation_interface.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/shirabe/src/dependency_resolver/operation/operation_interface.rs b/crates/shirabe/src/dependency_resolver/operation/operation_interface.rs
index a133411..99a40c4 100644
--- a/crates/shirabe/src/dependency_resolver/operation/operation_interface.rs
+++ b/crates/shirabe/src/dependency_resolver/operation/operation_interface.rs
@@ -1 +1,9 @@
//! ref: composer/src/Composer/DependencyResolver/Operation/OperationInterface.php
+
+pub trait OperationInterface {
+ fn get_operation_type(&self) -> String;
+
+ fn show(&self, lock: bool) -> String;
+
+ fn to_string(&self) -> String;
+}