public function setName($name)
 {
     parent::setName($name);
     if ($this->validator instanceof Validatable) {
         $this->validator->setName($name);
     }
     return $this;
 }
Пример #2
0
 public function setName($name)
 {
     $parentName = $this->getName();
     foreach ($this->rules as $rule) {
         $ruleName = $rule->getName();
         if ($ruleName && $parentName !== $ruleName) {
             continue;
         }
         $rule->setName($name);
     }
     return parent::setName($name);
 }
Пример #3
0
 public function setName($name)
 {
     $this->rule->setName($name);
     return parent::setName($name);
 }
Пример #4
0
 public function setName($name)
 {
     $this->getValidatable()->setName($name);
     return parent::setName($name);
 }