/** Setter for file size. */ protected function setFileSize($property, $value) { try { $this->{$property} = Payone_Log4php_LoggerOptionConverter::toFileSizeEx($value); } catch (Exception $ex) { $value = var_export($value, true); $this->warn("Invalid value given for '{$property}' property: [{$value}]. Expected a file size value. Property not changed."); } }