17 lines
		
	
	
		
			277 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			17 lines
		
	
	
		
			277 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| 
								 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								namespace Egulias\EmailValidator\Result\Reason;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class CommaInDomain implements Reason
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    public function code() : int
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        return 200;
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    public function description() : string
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        return "Comma ',' is not allowed in domain part";
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 |