aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/console/helper/helper_interface.rs
blob: 4d767bfe9ed1cd14495d9347c036ad087fca3792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! ref: composer/vendor/symfony/console/Helper/HelperInterface.php

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;
}