protected function ensureSelectorRulesExist($selector, $label = null) { if (!isset($this->rules[$selector])) { $this->rules[$selector] = new ValueValidator($this->getRuleFactory(), $this->getErroMessagePrototype(), $label); } }