public function getSourceRules()
    {
        if (!is_string($this->sourceAttribute) || empty($this->sourceAttribute)) {
            return [];
        }
        if (empty($this->_sourceRules)) {
            $this->_sourceRules = [
                [[$this->sourceAttribute], 'required'],
                [[$this->sourceAttribute], 'string'],
            ];
        }
        return $this->_sourceRules;
    }
public function getSourceRules()
    {
        if (!is_string($this->sourceAttribute) || empty($this->sourceAttribute)) {
            return [];
        }
        if (empty($this->_sourceRules)) {
            $this->_sourceRules = [
                [[$this->sourceAttribute], 'required'],
                [[$this->sourceAttribute], 'string'],
            ];
        }
        return $this->_sourceRules;
    }
public function getSourceRules ( ) { if ( ! is_string ( $ this -> sourceAttribute ) || empty ( $ this -> sourceAttribute ) ) { return [ ] ; } if ( empty ( $ this -> _sourceRules ) ) { $ this -> _sourceRules = [ [ [ $ this -> sourceAttribute ] , 'required' ] , [ [ $ this -> sourceAttribute ] , 'string' ] , ] ; } return $ this -> _sourceRules ; }
Get the rules associated with source attribute.
@return array rules.
Get the rules associated with source attribute .