# packeta/1.2.6/src/Packetery/Module/FormValidators.php

Packeta, version 1.2.6. 33 lines.

- Page: https://pluginprobe.com/plugins/packeta/1.2.6/code/src/Packetery/Module/FormValidators.php
- Raw: https://pluginprobe.com/plugins/packeta/1.2.6/raw/src/Packetery/Module/FormValidators.php
- Modified: 2022-05-04T14:45:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/packeta/1.2.6/code/src/Packetery/Module/FormValidators.php#L10-L20`.

```php
<?php
/**
 * Class FormValidators
 *
 * @package Packetery\Module
 */

declare(strict_types=1);

namespace Packetery\Module;

use PacketeryNette\Forms\Controls\BaseControl;

/**
 * Class FormValidators
 *
 * @package Packetery\Module
 */
class FormValidators {

	/**
	 * Tests if input value is greater than argument.
	 *
	 * @param \PacketeryNette\Forms\Controls\BaseControl $input Form input.
	 * @param float                                      $arg Validation argument.
	 *
	 * @return bool
	 */
	public static function greaterThan( BaseControl $input, float $arg ): bool {
		return $input->getValue() > $arg;
	}
}

```
