diff --git a/src/Wandu/Validator/Testers/FileSizeTester.php b/src/Wandu/Validator/Testers/FileSizeTester.php new file mode 100644 index 0000000..4b803d6 --- /dev/null +++ b/src/Wandu/Validator/Testers/FileSizeTester.php @@ -0,0 +1,28 @@ +max = $max; + } + + /** + * {@inheritdoc} + */ + public function test($data, $origin = null, array $keys = []): bool + { + return ( $this->max > $data ); + } +} +