lib/Doctrine/MongoDB/GridFSFile.php
public function isDirty($isDirty = null)
    {
        if ($isDirty !== null) {
            $this->isDirty = (boolean) $isDirty;
        }
        return $this->isDirty;
    }
public function isDirty($isDirty = null)
    {
        if ($isDirty !== null) {
            $this->isDirty = (boolean) $isDirty;
        }
        return $this->isDirty;
    }
public function isDirty ( $ isDirty = null ) { if ( $ isDirty !== null ) { $ this -> isDirty = ( boolean ) $ isDirty ; } return $ this -> isDirty ; }
Check whether the file is dirty.

If $isDirty is not null, the dirty state will be set before its new value
is returned.

@param boolean $isDirty
@return boolean
Check whether the file is dirty .