public function getDescriptionRules()
    {
        $rules = [];
        if (is_string($this->descriptionAttribute) && !empty($this->descriptionAttribute)) {
            $rules[] = [
                [$this->descriptionAttribute],
                'string'
            ];
            $rules[] = [
                [$this->descriptionAttribute],
                'default',
                'value' => $this->initDescription,
            ];
        }
        return $rules;
    }
public function getDescriptionRules()
    {
        $rules = [];
        if (is_string($this->descriptionAttribute) && !empty($this->descriptionAttribute)) {
            $rules[] = [
                [$this->descriptionAttribute],
                'string'
            ];
            $rules[] = [
                [$this->descriptionAttribute],
                'default',
                'value' => $this->initDescription,
            ];
        }
        return $rules;
    }
public function getDescriptionRules ( ) { $ rules = [ ] ; if ( is_string ( $ this -> descriptionAttribute ) && ! empty ( $ this -> descriptionAttribute ) ) { $ rules [ ] = [ [ $ this -> descriptionAttribute ] , 'string' ] ; $ rules [ ] = [ [ $ this -> descriptionAttribute ] , 'default' , 'value' => $ this -> initDescription , ] ; } return $ rules ; }
Get the rules associated with `description` attribute.
@return array rules.
Get the rules associated with description attribute .