original_string: public function setValidationRulesAttribute($value)
      {
          //If the passed value is a string, we assume the request wants to save a validation
          //string. Otherwise, we parse the array given to build such a string.
          if (is_string($value)) {
              $this->attributes['validation_rules'] = $value;
          }
  
          else {
              $this->attributes['validation_rules'] = ValidationRulesParser::parse($value)->toString();
          }
      }
code: public function setValidationRulesAttribute($value)
      {
          //If the passed value is a string, we assume the request wants to save a validation
          //string. Otherwise, we parse the array given to build such a string.
          if (is_string($value)) {
              $this->attributes['validation_rules'] = $value;
          }
  
          else {
              $this->attributes['validation_rules'] = ValidationRulesParser::parse($value)->toString();
          }
      }
code_tokens: public function setValidationRulesAttribute ( $ value ) { //If the passed value is a string, we assume the request wants to save a validation //string. Otherwise, we parse the array given to build such a string. if ( is_string ( $ value ) ) { $ this -> attributes [ 'validation_rules' ] = $ value ; } else { $ this -> attributes [ 'validation_rules' ] = ValidationRulesParser :: parse ( $ value ) -> toString ( ) ; } }
docstring: Set the validation_rules with the given value.
  
  @param  array|string  $value
  
  @return void
docstring_tokens: Set the validation_rules with the given value .