framework/base/Model.php
public function getValidators()
    {
        if ($this->_validators === null) {
            $this->_validators = $this->createValidators();
        }

        return $this->_validators;
    }
public function getValidators()
    {
        if ($this->_validators === null) {
            $this->_validators = $this->createValidators();
        }

        return $this->_validators;
    }
public function getValidators ( ) { if ( $ this -> _validators === null ) { $ this -> _validators = $ this -> createValidators ( ) ; } return $ this -> _validators ; }
Returns all the validators declared in [[rules()]].

This method differs from [[getActiveValidators()]] in that the latter
only returns the validators applicable to the current [[scenario]].

Because this method returns an ArrayObject object, you may
manipulate it by inserting or removing validators (useful in model behaviors).
For example,

```php
$model->validators[] = $newValidator;
```

@return ArrayObject|\yii\validators\Validator[] all the validators declared in the model.
Returns all the validators declared in [[ rules () ]] .