MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / __construct

Method __construct

bindings/php/src/lib.rs:30–35  ·  view source on GitHub ↗
(size: usize)

Source from the content-addressed store, hash-verified

28#[php_impl]
29impl StylesheetCache {
30 pub fn __construct(size: usize) -> PhpResult<StylesheetCache> {
31 let size = NonZeroUsize::new(size).ok_or_else(|| {
32 PhpException::default("Cache size must be an integer greater than zero".to_string())
33 })?;
34 Ok(StylesheetCache { size })
35 }
36}
37
38#[php_class]

Callers

nothing calls this directly

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected