Class PlateNumberCn
Check if the input is valid Chinese plate number
- Wei\Base
-
Wei\Validator\BaseValidator
-
Wei\Validator\Regex
-
Wei\Validator\PlateNumberCn
Namespace: Wei\Validator
Author: Twin Huang twinhuang@qq.com
Link: http://zh.wikipedia.org/wiki/%E4%B8%AD%E5%8D%8E%E4%BA%BA%E6%B0%91%E5%85%B1%E5%92%8C%E5%9B%BD%E8%BD%A6%E8%BE%86%E5%8F%B7%E7%89%8C
Located at Validator/PlateNumberCn.php
Author: Twin Huang twinhuang@qq.com
Link: http://zh.wikipedia.org/wiki/%E4%B8%AD%E5%8D%8E%E4%BA%BA%E6%B0%91%E5%85%B1%E5%92%8C%E5%9B%BD%E8%BD%A6%E8%BE%86%E5%8F%B7%E7%89%8C
Located at Validator/PlateNumberCn.php
__invoke(),
doValidate()
|
__call(),
__construct(),
__get(),
getOption(),
setOption()
|
t()
|
protected
string
|
$patternMessage
|
#
'%name% must be valid Chinese plate number'
|
protected
string
|
$negativeMessage
The common message for negative validator |
#
'%name% must not be valid Chinese plate number'
|
protected
string
|
$pattern
The regex pattern |
#
'/^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼渝川贵云藏陕甘青宁新军海空北沈兰济南广成][A-Z]{1}[A-Z0-9]{5}$/ui'
|
$errors,
$name,
$negative,
$notStringMessage,
$validator
|
$providers,
$wei
|
$t
|