for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File containing the {@link Request_Param_Validator_Alpha} class.
*
* @package Application Utils
* @subpackage Request
* @see Request_Param_Validator_Alpha
*/
declare(strict_types=1);
namespace AppUtils;
* Validates a string containing only letters, lowercase and uppercase.
* @author Sebastian Mordziol <[email protected]>
class Request_Param_Validator_Alpha extends Request_Param_Validator
{
public function getDefaultOptions() : array
return array();
}
protected function _validate()
if(!is_scalar($this->value)) {
return null;
if(preg_match('/\A[a-zA-Z]+\z/', $this->value)) {
return $this->value;