parent
							
								
									a4c0b3463b
								
							
						
					
					
						commit
						da847273b8
					
				@ -0,0 +1,13 @@
 | 
				
			||||
<?php
 | 
				
			||||
 | 
				
			||||
namespace App\Models\Validation\Validators;
 | 
				
			||||
 | 
				
			||||
abstract class Validator {
 | 
				
			||||
    abstract public function isCurrentValid(): bool;
 | 
				
			||||
 | 
				
			||||
    public function isValid(): bool
 | 
				
			||||
    {
 | 
				
			||||
        return $this->isCurrentValid() && $this->nextValidator->isValid();
 | 
				
			||||
    }
 | 
				
			||||
}
 | 
				
			||||
 | 
				
			||||
					Loading…
					
					
				
		Reference in new issue