You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							26 lines
						
					
					
						
							541 B
						
					
					
				
			
		
		
	
	
							26 lines
						
					
					
						
							541 B
						
					
					
				<?php
 | 
						|
 | 
						|
namespace App\Models\Validation\Messages;
 | 
						|
 | 
						|
use App\Models\Validation\Messages\InformativeValidator;
 | 
						|
use App\Models\Validation\Validators\OkValidator;
 | 
						|
 | 
						|
class OkInformativeValidator extends InformativeValidator {
 | 
						|
    public function __construct($message)
 | 
						|
    {
 | 
						|
        $this->message = $message;
 | 
						|
        $this->validator = new OkValidator();
 | 
						|
    }
 | 
						|
 | 
						|
    public function getMessage(): string
 | 
						|
    {
 | 
						|
        return $this->message;
 | 
						|
    }
 | 
						|
 | 
						|
    public function getOkStatus(): array
 | 
						|
    {
 | 
						|
        return ['ok' => $this->getMessage()];
 | 
						|
    }
 | 
						|
}
 | 
						|
 |