protected function parseRule($rules) { if (is_array($rules)) { return $this->parseArrayRule($rules); } return $this->parseStringRule($rules); }