for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mezon\Router\Types;
/**
* Default integer type for router
*
* @author gdever
*/
class IntegerRouterType
{
* Method returns regexp for searching
* @return string regexp for searching
public static function searchRegExp(): string
return '(\[i:'.BaseType::PARAMETER_NAME_REGEXP.'+\])';
}
* Method returns regexp for parsing
* @return string regexp for parsing
public static function parserRegExp(): string
return '([-+]{0,1}[0-9]+)';