public function setRules(array $rules) { $this->rules = array_merge($this->rules, $rules); return $this; }