Generator
abstract class Generator implements GeneratorInterface (View source)
Properties
| protected RuleInterface[] | $rules | 
Methods
                    __construct()
        
                                            
                
            Initializes the instance.
                    getRules()
        
                                            
                
            Returns all the defined rules.
                    null|RuleInterface
                
                
                    getRule(string $handle)
        
                                            
                
            Return a defined rule given its handle (if found).
Details
        
                            
    __construct()
        
    
    Initializes the instance.
        
                            
    addRule(string $handle, RuleInterface $rule)
        
    
    Add a new rule to be handled.
        
                            RuleInterface[]
    getRules()
        
    
    Returns all the defined rules.
        
                            null|RuleInterface
    getRule(string $handle)
        
    
    Return a defined rule given its handle (if found).