예제 #1
0
파일: Rule.php 프로젝트: joy2fun/phpvs
 /**
  * @param $filter
  * @param array $options
  * @param null $flag
  * @return $this
  */
 public function setup($filter, $options = array(), $flag = null)
 {
     parent::setup($filter, $options, $flag);
     $this->required = null;
     $this->default = null;
     $this->attr = array();
     if (RuleSet::getParsers() instanceof \SplObjectStorage) {
         foreach (RuleSet::getParsers() as $parser) {
             call_user_func(array($parser, 'parse'), $this);
         }
     }
     return $this;
 }