protected static function validate(string $field, string $value, string $rules): bool
	{
		$validation = \Config\Services::validation(null, false);
		$validation->setRule($field, null, $rules);
		$validation->run([$field => $value]);

		if ($validation->hasError($field))
		{
			static::error($validation->getError($field));

			return false;
		}

		return true;
	}
protected static function validate(string $field, string $value, string $rules): bool
	{
		$validation = \Config\Services::validation(null, false);
		$validation->setRule($field, null, $rules);
		$validation->run([$field => $value]);

		if ($validation->hasError($field))
		{
			static::error($validation->getError($field));

			return false;
		}

		return true;
	}
protected static function validate ( string $ field , string $ value , string $ rules ) : bool { $ validation = \ Config \ Services :: validation ( null , false ) ; $ validation -> setRule ( $ field , null , $ rules ) ; $ validation -> run ( [ $ field => $ value ] ) ; if ( $ validation -> hasError ( $ field ) ) { static :: error ( $ validation -> getError ( $ field ) ) ; return false ; } return true ; }
Validate one prompt "field" at a time

@param string $field Prompt "field" output
@param string $value Input value
@param string $rules Validation rules

@return             boolean
@codeCoverageIgnore
Validate one prompt field at a time