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