aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/package/root_package.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/package/root_package.rs')
-rw-r--r--crates/shirabe/src/package/root_package.rs139
1 files changed, 139 insertions, 0 deletions
diff --git a/crates/shirabe/src/package/root_package.rs b/crates/shirabe/src/package/root_package.rs
index 846cd13..d0c96aa 100644
--- a/crates/shirabe/src/package/root_package.rs
+++ b/crates/shirabe/src/package/root_package.rs
@@ -1,6 +1,7 @@
//! ref: composer/src/Composer/Package/RootPackage.php
use crate::package::complete_package::CompletePackage;
+use crate::package::complete_package_interface::CompletePackageInterface;
use crate::package::root_package_interface::RootPackageInterface;
use indexmap::IndexMap;
use shirabe_php_shim::PhpMixed;
@@ -68,4 +69,142 @@ impl RootPackageInterface for RootPackage {
fn get_aliases(&self) -> &[IndexMap<String, String>] {
&self.aliases
}
+
+ fn set_requires(&mut self, requires: Vec<super::link::Link>) {
+ todo!()
+ }
+
+ fn set_dev_requires(&mut self, dev_requires: Vec<super::link::Link>) {
+ todo!()
+ }
+
+ fn set_conflicts(&mut self, conflicts: Vec<super::link::Link>) {
+ todo!()
+ }
+
+ fn set_provides(&mut self, provides: Vec<super::link::Link>) {
+ todo!()
+ }
+
+ fn set_replaces(&mut self, replaces: Vec<super::link::Link>) {
+ todo!()
+ }
+
+ fn set_autoload(&mut self, autoload: IndexMap<String, PhpMixed>) {
+ todo!()
+ }
+
+ fn set_dev_autoload(&mut self, dev_autoload: IndexMap<String, PhpMixed>) {
+ todo!()
+ }
+
+ fn set_suggests(&mut self, suggests: IndexMap<String, String>) {
+ todo!()
+ }
+
+ fn set_extra(&mut self, extra: IndexMap<String, PhpMixed>) {
+ todo!()
+ }
+}
+
+impl CompletePackageInterface for RootPackage {
+ fn get_scripts(&self) -> IndexMap<String, Vec<String>> {
+ todo!()
+ }
+
+ fn set_scripts(&mut self, scripts: IndexMap<String, Vec<String>>) {
+ todo!()
+ }
+
+ fn get_repositories(&self) -> Vec<IndexMap<String, PhpMixed>> {
+ todo!()
+ }
+
+ fn set_repositories(&mut self, repositories: Vec<IndexMap<String, PhpMixed>>) {
+ todo!()
+ }
+
+ fn get_license(&self) -> Vec<String> {
+ todo!()
+ }
+
+ fn set_license(&mut self, license: Vec<String>) {
+ todo!()
+ }
+
+ fn get_keywords(&self) -> Vec<String> {
+ todo!()
+ }
+
+ fn set_keywords(&mut self, keywords: Vec<String>) {
+ todo!()
+ }
+
+ fn get_description(&self) -> Option<&str> {
+ todo!()
+ }
+
+ fn set_description(&mut self, description: String) {
+ todo!()
+ }
+
+ fn get_homepage(&self) -> Option<&str> {
+ todo!()
+ }
+
+ fn set_homepage(&mut self, homepage: String) {
+ todo!()
+ }
+
+ fn get_authors(&self) -> Vec<IndexMap<String, String>> {
+ todo!()
+ }
+
+ fn set_authors(&mut self, authors: Vec<IndexMap<String, String>>) {
+ todo!()
+ }
+
+ fn get_support(&self) -> IndexMap<String, String> {
+ todo!()
+ }
+
+ fn set_support(&mut self, support: IndexMap<String, String>) {
+ todo!()
+ }
+
+ fn get_funding(&self) -> Vec<IndexMap<String, PhpMixed>> {
+ todo!()
+ }
+
+ fn set_funding(&mut self, funding: Vec<IndexMap<String, PhpMixed>>) {
+ todo!()
+ }
+
+ fn is_abandoned(&self) -> bool {
+ todo!()
+ }
+
+ fn get_replacement_package(&self) -> Option<&str> {
+ todo!()
+ }
+
+ fn set_abandoned(&mut self, abandoned: PhpMixed) {
+ todo!()
+ }
+
+ fn get_archive_name(&self) -> Option<&str> {
+ todo!()
+ }
+
+ fn set_archive_name(&mut self, name: String) {
+ todo!()
+ }
+
+ fn get_archive_excludes(&self) -> Vec<String> {
+ todo!()
+ }
+
+ fn set_archive_excludes(&mut self, excludes: Vec<String>) {
+ todo!()
+ }
}