aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/console/output/console_output_interface.rs
blob: 53db5d6a6cfaacd19e3504e8ccec9805076eaa28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! ref: composer/vendor/symfony/console/Output/ConsoleOutputInterface.php

use crate::symfony::console::output::ConsoleSectionOutput;
use crate::symfony::console::output::OutputInterface;

/// ConsoleOutputInterface is the interface implemented by ConsoleOutput class.
/// This adds information about stderr and section output stream.
pub trait ConsoleOutputInterface: OutputInterface {
    /// Gets the OutputInterface for errors.
    fn get_error_output(&self) -> std::rc::Rc<std::cell::RefCell<dyn OutputInterface>>;

    fn set_error_output(&self, error: std::rc::Rc<std::cell::RefCell<dyn OutputInterface>>);

    fn section(&self) -> std::rc::Rc<std::cell::RefCell<ConsoleSectionOutput>>;
}