Warning
class Warning extends Message (View source)
An object representation of a generic warning. Subclass this to create more specific warnings if necessary.
Constants
| SEVERITY_NOTICE | 
                     
  | 
            
| SEVERITY_WARNING | 
                     
  | 
            
| SEVERITY_ERROR | 
                     
  | 
            
| SEVERITY_OK | 
                     
  | 
            
Properties
| protected string | $message | The error message, could also be a key for translation.  | 
                from Message | 
| protected string | $title | An optional title for the message (used eg. in flashMessages).  | 
                from Message | 
| protected int | $code | The error code.  | 
                from Message | 
| protected array | $arguments | The message arguments. Will be replaced in the message body.  | 
                from Message | 
| protected string | $severity | The severity of this message ('Warning').  | 
                
Methods
                    __construct(string $message, int|null $code = null, array $arguments = [], string $title = '')
        
                                            
                Constructs this error
from 
Message
            Details
        
                            
    __construct(string $message, int|null $code = null, array $arguments = [], string $title = '')
        
    
    Constructs this error
        
                            string
    getMessage()
        
    
    Returns the error message
        
                            bool
    hasCode()
        
    
    No description
        
                            int
    getCode()
        
    
    Returns the error code
        
                            array
    getArguments()
        
    
    No description
        
                            bool
    hasTitle()
        
    
    No description
        
                            string
    getTitle()
        
    
    No description
        
                            string
    getSeverity()
        
    
    No description
        
                            string
    render()
        
    
    No description
        
                            string
    __toString()
        
    
    Converts this error into a string