original_string: public function setDirty($property, $isDirty = true)
      {
          if ($isDirty === false) {
              unset($this->_dirty[$property]);
  
              return $this;
          }
  
          $this->_dirty[$property] = true;
          unset($this->_errors[$property], $this->_invalid[$property]);
  
          return $this;
      }
code: public function setDirty($property, $isDirty = true)
      {
          if ($isDirty === false) {
              unset($this->_dirty[$property]);
  
              return $this;
          }
  
          $this->_dirty[$property] = true;
          unset($this->_errors[$property], $this->_invalid[$property]);
  
          return $this;
      }
code_tokens: public function setDirty ( $ property , $ isDirty = true ) { if ( $ isDirty === false ) { unset ( $ this -> _dirty [ $ property ] ) ; return $ this ; } $ this -> _dirty [ $ property ] = true ; unset ( $ this -> _errors [ $ property ] , $ this -> _invalid [ $ property ] ) ; return $ this ; }
docstring: Sets the dirty status of a single property.
  
  @param string $property the field to set or check status for
  @param bool $isDirty true means the property was changed, false means
  it was not changed. Defaults to true.
  @return $this
docstring_tokens: Sets the dirty status of a single property .