/**
  * constructor
  *
  * @return NameRule
  * @author Justin Palmer
  **/
 public function __construct($message = '%s should only include lowercase and capital letters, foreign language characters, hyphen and space.')
 {
     parent::__construct("0-9\\s\\-", $message);
 }
示例#2
0
 /**
  * constructor
  *
  * @return NameRule
  * @author Justin Palmer
  **/
 public function __construct($message = '%s should only include lowercase and capital letters, foreign language characters, hyphen, period, space, comma and apostrophe.')
 {
     parent::__construct("\\s\\,\\-\\.\\'#:+0-9\\pL", $message);
 }