Service
class Service (View source)
Properties
| private string[] | $bannedWords | 
Methods
                    array
                
                
                    getBannedWords()
        
                                            
                
            No description
                    void
                
                
                    setBannedWords(array $bannedWords)
        
                                            
                
            No description
                    bool
                
                
                    hasBannedWords(string $string)
        
                                            
                
            Check if the given sentence has the banned words.
                    bool
                
                
                    hasBannedWord(string $bannedWord, string $sentence)
        
                                            
                
            Check if the given sentence has the banned word.
                    array
                
                
                    explodeString(string $string)
        
                                            
                
            Explode string by whitespaces, line separators, tabs, punctuations, etc.
Details
        
                            array
    getBannedWords()
        
    
    No description
        
                            void
    setBannedWords(array $bannedWords)
        
    
    No description
        
                            bool
    hasBannedWords(string $string)
        
    
    Check if the given sentence has the banned words.
        
                            bool
    hasBannedWord(string $bannedWord, string $sentence)
        
    
    Check if the given sentence has the banned word.
        
                            array
    explodeString(string $string)
        
    
    Explode string by whitespaces, line separators, tabs, punctuations, etc.