-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Attachment and ClassifiedTaxCategory #57
base: master
Are you sure you want to change the base?
Conversation
Allow Attachment to define the content of the file Add missing accessors for ClassifiedTaxCategory
Hi! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The property $fileName
is not used in the class (excepted in get/set).
Maybe, in the method XmlSerialize
, we could replace the line 167 with:
- 'filename' => basename($this->filePath)
+ 'filename' => $filename
?
if ($this->filePath || $this->fileContent) { | ||
if ($this->filePath) { | ||
$fileContents = base64_encode(file_get_contents($this->filePath)); | ||
$mimeType = $this->getFileMimeType(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add:
$filename = basename($this->filePath);
$mimeType = $this->getFileMimeType(); | ||
} else { | ||
$fileContents = $this->fileContent; | ||
$mimeType = $this->mimeType; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add:
$filename = $this->filename;
Your PR interests me because that is absent of the main branch, so thanks for the PR :-) |
Allow Attachment to define the content of the file
Add missing accessors for ClassifiedTaxCategory