src/models/Settings.php
/**
     * Returns the validation rules for attributes.
     *
     * Validation rules are used by [[validate()]] to check if attribute values are valid.
     * Child classes may override this method to declare different validation rules.
     *
     * More info: http://www.yiiframework.com/doc-2.0/guide-input-validation.html
     *
     * @return array
     */
Returns the validation rules for attributes.
Validation rules are used by [[validate()]] to check if attribute values are valid.
Child classes may override this method to declare different validation rules.



@return array
Returns the validation rules for attributes . Validation rules are used by [[ validate () ]] to check if attribute values are valid . Child classes may override this method to declare different validation rules . @return array
public function rules()
    {
        return [
            ['siteKey', 'string'],
            ['secretKey', 'string'],
            [['siteKey', 'secretKey'], 'required']
        ];
    }
public function rules ( ) { return [ [ 'siteKey' , 'string' ] , [ 'secretKey' , 'string' ] , [ [ 'siteKey' , 'secretKey' ] , 'required' ] ] ; }
Returns the validation rules for attributes.
Returns the validation rules for attributes .