mirror of
https://github.com/retailcrm/Fetch.git
synced 2025-02-06 10:39:21 +03:00
Merge pull request #24 from sgsabbage/master
Added getStructure() function to the Attachment class.
This commit is contained in:
commit
938f8cf574
@ -158,6 +158,16 @@ class Attachment
|
|||||||
return $this->size;
|
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.
|
* This function saves the attachment to the passed directory, keeping the original name of the file.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user