From def9ee5cd77d306585cbae281269d7da9c742ab4 Mon Sep 17 00:00:00 2001 From: Sean Sabbage Date: Wed, 21 Aug 2013 20:04:03 +0100 Subject: [PATCH] Added getStructure() function to the Attachment class. --- src/Fetch/Attachment.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Fetch/Attachment.php b/src/Fetch/Attachment.php index 706250f..3e6c8c3 100644 --- a/src/Fetch/Attachment.php +++ b/src/Fetch/Attachment.php @@ -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. *