blob: f7481fdc12a53f046c0a18817ddfdbac119b63cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use crate::symfony::console::helper::helper_set::HelperSet;
use std::cell::RefCell;
use std::rc::Rc;
/// HelperInterface is the interface all helpers must implement.
pub trait HelperInterface: std::fmt::Debug + shirabe_php_shim::AsAny {
/// Sets the helper set associated with this helper.
fn set_helper_set(&mut self, helper_set: Option<Rc<RefCell<HelperSet>>>);
/// Gets the helper set associated with this helper.
fn get_helper_set(&self) -> Option<Rc<RefCell<HelperSet>>>;
/// Returns the canonical name of this helper.
fn get_name(&self) -> String;
}
|