1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
use shirabe_php_shim::PhpMixed;
pub trait InputInterface {
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::input_definition::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);
}
|