mirror of
https://github.com/retailcrm/Fetch.git
synced 2025-04-09 03:52:02 +00:00
Merge pull request #24 from sgsabbage/master
Added getStructure() function to the Attachment class.
This commit is contained in:
commit
938f8cf574
1 changed files with 10 additions and 0 deletions
|
@ -158,6 +158,16 @@ class Attachment
|
|||
return $this->size;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function returns the object that contains the structure of this attachment.
|
||||
*
|
||||
* @return \stdClass
|
||||
*/
|
||||
public function getStructure()
|
||||
{
|
||||
return $this->structure;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function saves the attachment to the passed directory, keeping the original name of the file.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue