Component
abstract class Component (View source)
Properties
| protected OutputStyle | $output | The output style implementation.  | 
                |
| protected | $mutators | The list of mutators to apply on the view data.  | 
                
Methods
                    void
                
                
                
            
                    void
                
                
                
            
                    void
                
                
                    compile(string $view, array $data)
        
                                            
                
            Compile the given view contents.
                    array<int,string>|string
                
                
                    mutate(array<int,string>|string $data, $mutators)
        
                                            
                
            Mutates the given data with the given set of mutators.
                    mixed
                
                
                    usingQuestionHelper(callable $callable)
        
                                            
                
            Eventually performs a question using the component's question helper.
Details
        
                            void
    __construct(OutputStyle $output)
        
    
    Creates a new component instance.
        
                    protected        void
    renderView(string $view, Arrayable|array $data, int $verbosity)
        
    
    Renders the given view.
        
                    protected        void
    compile(string $view, array $data)
        
    
    Compile the given view contents.
        
                    protected        array<int,string>|string
    mutate(array<int,string>|string $data, $mutators)
        
    
    Mutates the given data with the given set of mutators.
        
                    protected        mixed
    usingQuestionHelper(callable $callable)
        
    
    Eventually performs a question using the component's question helper.