original_string: public function setHashingAttribute($attribute, $value)
      {
          // Set the value which is presumably plain text
          $this->attributes[$attribute] = $value;
  
          // Do the hashing if it needs it
          if ( ! empty($value) && ($this->isDirty($attribute) || ! $this->isHashed($attribute))) {
              $this->attributes[$attribute] = $this->hash($value);
          }
      }
code: public function setHashingAttribute($attribute, $value)
      {
          // Set the value which is presumably plain text
          $this->attributes[$attribute] = $value;
  
          // Do the hashing if it needs it
          if ( ! empty($value) && ($this->isDirty($attribute) || ! $this->isHashed($attribute))) {
              $this->attributes[$attribute] = $this->hash($value);
          }
      }
code_tokens: public function setHashingAttribute ( $ attribute , $ value ) { // Set the value which is presumably plain text $ this -> attributes [ $ attribute ] = $ value ; // Do the hashing if it needs it if ( ! empty ( $ value ) && ( $ this -> isDirty ( $ attribute ) || ! $ this -> isHashed ( $ attribute ) ) ) { $ this -> attributes [ $ attribute ] = $ this -> hash ( $ value ) ; } }
docstring: Set a hashed value for a hashable attribute.
  
  @param string $attribute name
  @param string $value     to hash
docstring_tokens: Set a hashed value for a hashable attribute .