public function setRule($rule, $data) { if (array_key_exists($rule, $this->_rules)) { $this->_rules[$rule] = array_merge($this->_rules[$rule], $data); } }