/** * @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; }