protected function setValueAndCheckIfModified($propertyName, $value)
    {
        if ($this->{$propertyName} !== $value) {
            $this->isModified = true;
        }

        $this->{$propertyName} = $value;
    }
protected function setValueAndCheckIfModified($propertyName, $value)
    {
        if ($this->{$propertyName} !== $value) {
            $this->isModified = true;
        }

        $this->{$propertyName} = $value;
    }
protected function setValueAndCheckIfModified ( $ propertyName , $ value ) { if ( $ this -> { $ propertyName } !== $ value ) { $ this -> isModified = true ; } $ this -> { $ propertyName } = $ value ; }
Sets a property's value and if it differs from the previous then mark these settings as modified.
Sets a property s value and if it differs from the previous then mark these settings as modified .