Added getStructure() function to the Attachment class.

This commit is contained in:
Sean Sabbage 2013-08-21 20:04:03 +01:00
parent 6a8d11e9dd
commit def9ee5cd7

View File

@ -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.
* *