original_string: public function dirty($property = null, $isDirty = null)
      {
          deprecationWarning(
              get_called_class() . '::dirty() is deprecated. ' .
              'Use setDirty()/isDirty() instead.'
          );
          if ($property === null) {
              return $this->isDirty();
          }
  
          if ($isDirty === null) {
              return $this->isDirty($property);
          }
  
          $this->setDirty($property, $isDirty);
  
          return true;
      }
code: public function dirty($property = null, $isDirty = null)
      {
          deprecationWarning(
              get_called_class() . '::dirty() is deprecated. ' .
              'Use setDirty()/isDirty() instead.'
          );
          if ($property === null) {
              return $this->isDirty();
          }
  
          if ($isDirty === null) {
              return $this->isDirty($property);
          }
  
          $this->setDirty($property, $isDirty);
  
          return true;
      }
code_tokens: public function dirty ( $ property = null , $ isDirty = null ) { deprecationWarning ( get_called_class ( ) . '::dirty() is deprecated. ' . 'Use setDirty()/isDirty() instead.' ) ; if ( $ property === null ) { return $ this -> isDirty ( ) ; } if ( $ isDirty === null ) { return $ this -> isDirty ( $ property ) ; } $ this -> setDirty ( $ property , $ isDirty ) ; return true ; }
docstring: Sets the dirty status of a single property. If called with no second
  argument, it will return whether the property was modified or not
  after the object creation.
  
  When called with no arguments it will return whether or not there are any
  dirty property in the entity
  
  @deprecated 3.4.0 Use EntityTrait::setDirty() and EntityTrait::isDirty()
  @param string|null $property the field to set or check status for
  @param null|bool $isDirty true means the property was changed, false means
  it was not changed and null will make the function return current state
  for that property
  @return bool Whether the property was changed or not
docstring_tokens: Sets the dirty status of a single property . If called with no second argument it will return whether the property was modified or not after the object creation .