示例#1
0
文件: Regex.php 项目: 2008gzz/lit
 /**
  * @param Lit_App $app
  * @param string $pattern 匹配的正则
  * @param callback[] $callbacks 要触发的cb
  */
 function __construct($app, $pattern, $callbacks)
 {
     $this->pattern = $pattern;
     $this->callbacks = $callbacks;
     parent::__construct($app);
 }
示例#2
0
文件: Any.php 项目: 2008gzz/lit
 /**
  * @param Lit_App $app
  * @param callback[] $callbacks
  */
 function __construct($app, $callbacks)
 {
     $this->callbacks = $callbacks;
     parent::__construct($app);
 }