diff options
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/component/console/input')
6 files changed, 0 insertions, 254 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/component/console/input/array_input.rs b/crates/shirabe-external-packages/src/symfony/component/console/input/array_input.rs deleted file mode 100644 index 86c982d..0000000 --- a/crates/shirabe-external-packages/src/symfony/component/console/input/array_input.rs +++ /dev/null @@ -1,69 +0,0 @@ -use crate::symfony::component::console::input::InputDefinition; -use crate::symfony::component::console::input::InputInterface; -use indexmap::IndexMap; -use shirabe_php_shim::PhpMixed; - -#[derive(Debug)] -pub struct ArrayInput; - -impl ArrayInput { - pub fn new( - _parameters: IndexMap<String, PhpMixed>, - _definition: Option<InputDefinition>, - ) -> Self { - todo!() - } -} - -impl InputInterface for ArrayInput { - fn get_first_argument(&self) -> Option<String> { - todo!() - } - fn has_parameter_option(&self, _values: &[&str], _only_params: bool) -> bool { - todo!() - } - fn get_parameter_option( - &self, - _values: &[&str], - _default: PhpMixed, - _only_params: bool, - ) -> PhpMixed { - todo!() - } - fn bind(&mut self, _definition: &InputDefinition) -> anyhow::Result<()> { - todo!() - } - fn validate(&self) -> anyhow::Result<()> { - todo!() - } - fn get_arguments(&self) -> IndexMap<String, PhpMixed> { - todo!() - } - fn get_argument(&self, _name: &str) -> PhpMixed { - todo!() - } - fn set_argument(&mut self, _name: &str, _value: PhpMixed) -> anyhow::Result<()> { - todo!() - } - fn has_argument(&self, _name: &str) -> bool { - todo!() - } - fn get_options(&self) -> IndexMap<String, PhpMixed> { - todo!() - } - fn get_option(&self, _name: &str) -> PhpMixed { - todo!() - } - fn set_option(&mut self, _name: &str, _value: PhpMixed) -> anyhow::Result<()> { - todo!() - } - fn has_option(&self, _name: &str) -> bool { - todo!() - } - fn is_interactive(&self) -> bool { - todo!() - } - fn set_interactive(&mut self, _interactive: bool) { - todo!() - } -} diff --git a/crates/shirabe-external-packages/src/symfony/component/console/input/input_definition.rs b/crates/shirabe-external-packages/src/symfony/component/console/input/input_definition.rs deleted file mode 100644 index 74839fc..0000000 --- a/crates/shirabe-external-packages/src/symfony/component/console/input/input_definition.rs +++ /dev/null @@ -1,30 +0,0 @@ -use shirabe_php_shim::PhpMixed; - -#[derive(Debug)] -pub struct InputDefinition; - -impl InputDefinition { - pub fn new(_definition: Vec<PhpMixed>) -> Self { - todo!() - } - - pub fn add_argument(&mut self, _argument: PhpMixed) { - todo!() - } - - pub fn add_option(&mut self, _option: PhpMixed) { - todo!() - } - - pub fn has_option(&self, _name: &str) -> bool { - todo!() - } - - pub fn get_option(&self, _name: &str) -> anyhow::Result<PhpMixed> { - todo!() - } - - pub fn has_argument(&self, _name: &str) -> bool { - todo!() - } -} diff --git a/crates/shirabe-external-packages/src/symfony/component/console/input/input_interface.rs b/crates/shirabe-external-packages/src/symfony/component/console/input/input_interface.rs deleted file mode 100644 index a556198..0000000 --- a/crates/shirabe-external-packages/src/symfony/component/console/input/input_interface.rs +++ /dev/null @@ -1,32 +0,0 @@ -use shirabe_php_shim::PhpMixed; - -pub trait InputInterface: std::fmt::Debug { - fn get_first_argument(&self) -> Option<String>; - fn has_parameter_option(&self, values: &[&str], only_params: bool) -> bool; - fn get_parameter_option( - &self, - values: &[&str], - default: PhpMixed, - only_params: bool, - ) -> PhpMixed; - fn bind( - &mut self, - definition: &crate::symfony::component::console::input::InputDefinition, - ) -> anyhow::Result<()>; - fn validate(&self) -> anyhow::Result<()>; - fn get_arguments(&self) -> indexmap::IndexMap<String, PhpMixed>; - fn get_argument(&self, name: &str) -> PhpMixed; - fn set_argument(&mut self, name: &str, value: PhpMixed) -> anyhow::Result<()>; - fn has_argument(&self, name: &str) -> bool; - fn get_options(&self) -> indexmap::IndexMap<String, PhpMixed>; - fn get_option(&self, name: &str) -> PhpMixed; - fn set_option(&mut self, name: &str, value: PhpMixed) -> anyhow::Result<()>; - fn has_option(&self, name: &str) -> bool; - fn is_interactive(&self) -> bool; - fn set_interactive(&mut self, interactive: bool); - - /// Equivalent to PHP `(string) $input` (Input::__toString). - fn to_input_string(&self) -> String { - todo!() - } -} diff --git a/crates/shirabe-external-packages/src/symfony/component/console/input/input_option.rs b/crates/shirabe-external-packages/src/symfony/component/console/input/input_option.rs deleted file mode 100644 index 673ca07..0000000 --- a/crates/shirabe-external-packages/src/symfony/component/console/input/input_option.rs +++ /dev/null @@ -1,46 +0,0 @@ -use shirabe_php_shim::PhpMixed; - -#[derive(Debug)] -pub struct InputOption; - -impl InputOption { - pub const VALUE_NONE: i64 = 1; - pub const VALUE_REQUIRED: i64 = 2; - pub const VALUE_OPTIONAL: i64 = 4; - pub const VALUE_IS_ARRAY: i64 = 8; - pub const VALUE_NEGATABLE: i64 = 16; - - pub fn new( - _name: &str, - _shortcut: Option<&str>, - _mode: Option<i64>, - _description: &str, - _default: PhpMixed, - ) -> Self { - todo!() - } - - pub fn get_name(&self) -> String { - todo!() - } - - pub fn accept_value(&self) -> bool { - todo!() - } - - pub fn is_value_required(&self) -> bool { - todo!() - } - - pub fn is_value_optional(&self) -> bool { - todo!() - } - - pub fn is_array(&self) -> bool { - todo!() - } - - pub fn get_default(&self) -> PhpMixed { - todo!() - } -} diff --git a/crates/shirabe-external-packages/src/symfony/component/console/input/mod.rs b/crates/shirabe-external-packages/src/symfony/component/console/input/mod.rs deleted file mode 100644 index 2071388..0000000 --- a/crates/shirabe-external-packages/src/symfony/component/console/input/mod.rs +++ /dev/null @@ -1,11 +0,0 @@ -pub mod array_input; -pub mod input_definition; -pub mod input_interface; -pub mod input_option; -pub mod string_input; - -pub use array_input::*; -pub use input_definition::*; -pub use input_interface::*; -pub use input_option::*; -pub use string_input::*; diff --git a/crates/shirabe-external-packages/src/symfony/component/console/input/string_input.rs b/crates/shirabe-external-packages/src/symfony/component/console/input/string_input.rs deleted file mode 100644 index 140082e..0000000 --- a/crates/shirabe-external-packages/src/symfony/component/console/input/string_input.rs +++ /dev/null @@ -1,66 +0,0 @@ -use crate::symfony::component::console::input::InputDefinition; -use crate::symfony::component::console::input::InputInterface; -use indexmap::IndexMap; -use shirabe_php_shim::PhpMixed; - -#[derive(Debug)] -pub struct StringInput; - -impl StringInput { - pub fn new(_input: &str) -> Self { - todo!() - } -} - -impl InputInterface for StringInput { - fn get_first_argument(&self) -> Option<String> { - todo!() - } - fn has_parameter_option(&self, _values: &[&str], _only_params: bool) -> bool { - todo!() - } - fn get_parameter_option( - &self, - _values: &[&str], - _default: PhpMixed, - _only_params: bool, - ) -> PhpMixed { - todo!() - } - fn bind(&mut self, _definition: &InputDefinition) -> anyhow::Result<()> { - todo!() - } - fn validate(&self) -> anyhow::Result<()> { - todo!() - } - fn get_arguments(&self) -> IndexMap<String, PhpMixed> { - todo!() - } - fn get_argument(&self, _name: &str) -> PhpMixed { - todo!() - } - fn set_argument(&mut self, _name: &str, _value: PhpMixed) -> anyhow::Result<()> { - todo!() - } - fn has_argument(&self, _name: &str) -> bool { - todo!() - } - fn get_options(&self) -> IndexMap<String, PhpMixed> { - todo!() - } - fn get_option(&self, _name: &str) -> PhpMixed { - todo!() - } - fn set_option(&mut self, _name: &str, _value: PhpMixed) -> anyhow::Result<()> { - todo!() - } - fn has_option(&self, _name: &str) -> bool { - todo!() - } - fn is_interactive(&self) -> bool { - todo!() - } - fn set_interactive(&mut self, _interactive: bool) { - todo!() - } -} |
