Maslosoft Mangan API
Class NumberValidator
NumberValidator
- Maslosoft\Mangan\Validators\BuiltIn\NumberValidator implements Maslosoft\Mangan\Interfaces\Validators\ValidatorInterface uses Maslosoft\Mangan\Validators\Traits\AllowEmpty, Maslosoft\Mangan\Validators\Traits\Messages, Maslosoft\Mangan\Validators\Traits\OnScenario, Maslosoft\Mangan\Validators\Traits\Safe, Maslosoft\Mangan\Validators\Traits\SkipOnError
 
Author: Piotr Maselkowski
Located at Validators/BuiltIn/NumberValidator.php
Methods summary
				 public 
				
				
				
			 | 
			
Methods inherited from Maslosoft\Mangan\Interfaces\Validators\ValidatorInterface
Methods used from Maslosoft\Mangan\Validators\Traits\Messages
Constants summary
Constants inherited from Maslosoft\Mangan\Interfaces\Validators\ValidatorInterface
Properties summary
				public  
				boolean
			 | 
			
					$integerOnly
				 Whether the attribute value can only be an integer. Defaults to false.  | 
			
				 
					#
					 
			false
				 | 
		
				public  
				integer|float
			 | 
			
					$max
				 Upper limit of the number. Defaults to null, meaning no upper limit.  | 
			
				 
					#
					 
			NULL
				 | 
		
				public  
				integer|float
			 | 
			
					$min
				 Lower limit of the number. Defaults to null, meaning no lower limit.  | 
			
				 
					#
					 
			NULL
				 | 
		
				public  
				string
			 | 
			
					$tooBig
				 Deprecated: Use   | 
			
				 
					#
					 
			NULL
				 | 
		
				public  
				string
			 | 
			
					$tooSmall
				 Deprecated: Use   | 
			
				 
					#
					 
			NULL
				 | 
		
				public  
				string
			 | 
			
					$msgNumber
				 Custom message to show if value is not number  | 
			
				 
					#
					 
			''
				 | 
		
				public  
				string
			 | 
			
					$msgInteger
				 Custom message to show if value is not integer when integer checking is enabled  | 
			
				 
					#
					 
			''
				 | 
		
				public  
				string
			 | 
			
					$msgTooSmall
				 Custom message to show if value is over maximum  | 
			
				 
					#
					 
			''
				 | 
		
				public  
				string
			 | 
			
					$msgTooBig
				 Custom message to show if value is under minimum  | 
			
				 
					#
					 
			''
				 |