for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace PerfectApp\Validation;
/**
*
*/
class CtypeDigitValidationStrategy implements ValidationStrategy
{
* @param $data
* @return bool
public function validate($data): bool
// Return true if the data is a valid numeric value, false otherwise
return ctype_digit($data);
}