blob: 2e044539272dc190b2f25c6f3847a5b614a2356b (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
//! ref: composer/src/Composer/Platform/Runtime.php
use anyhow::Result;
use shirabe_php_shim::PhpMixed;
#[derive(Debug)]
pub struct Runtime;
impl Runtime {
pub fn has_constant(&self, constant_name: &str, class: Option<&str>) -> bool {
todo!()
}
pub fn get_constant(&self, constant_name: &str, class: Option<&str>) -> PhpMixed {
todo!()
}
pub fn has_function(&self, f: &str) -> bool {
todo!()
}
pub fn invoke(
&self,
callable: Box<dyn Fn(Vec<PhpMixed>) -> PhpMixed>,
arguments: Vec<PhpMixed>,
) -> PhpMixed {
todo!()
}
pub fn has_class(&self, class: &str) -> bool {
todo!()
}
pub fn construct(&self, class: &str, arguments: Vec<PhpMixed>) -> Result<PhpMixed> {
todo!()
}
pub fn get_extensions(&self) -> Vec<String> {
todo!()
}
pub fn get_extension_version(&self, extension: &str) -> String {
todo!()
}
pub fn get_extension_info(&self, extension: &str) -> Result<String> {
todo!()
}
pub fn parse_html_extension_info(html: &str) -> String {
todo!()
}
}
|