public function getAccessTokenRules()
    {
        if (!is_string($this->accessTokenAttribute) || empty($this->accessTokenAttribute)) {
            return [];
        }
        if (empty($this->accessTokenRules)) {
            $this->accessTokenRules = [
                [[$this->accessTokenAttribute], 'required'],
                [[$this->accessTokenAttribute], 'string', 'max' => 40],
            ];
        }
        return $this->accessTokenRules;
    }
public function getAccessTokenRules()
    {
        if (!is_string($this->accessTokenAttribute) || empty($this->accessTokenAttribute)) {
            return [];
        }
        if (empty($this->accessTokenRules)) {
            $this->accessTokenRules = [
                [[$this->accessTokenAttribute], 'required'],
                [[$this->accessTokenAttribute], 'string', 'max' => 40],
            ];
        }
        return $this->accessTokenRules;
    }
public function getAccessTokenRules ( ) { if ( ! is_string ( $ this -> accessTokenAttribute ) || empty ( $ this -> accessTokenAttribute ) ) { return [ ] ; } if ( empty ( $ this -> accessTokenRules ) ) { $ this -> accessTokenRules = [ [ [ $ this -> accessTokenAttribute ] , 'required' ] , [ [ $ this -> accessTokenAttribute ] , 'string' , 'max' => 40 ] , ] ; } return $ this -> accessTokenRules ; }
Get the rules associated with access token attribute.
@return array
Get the rules associated with access token attribute .