Skip to content

Commit 938f8cf

Browse files
committed
Merge pull request #24 from sgsabbage/master
Added getStructure() function to the Attachment class.
2 parents 6a8d11e + def9ee5 commit 938f8cf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Fetch/Attachment.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,16 @@ public function getSize()
158158
return $this->size;
159159
}
160160

161+
/**
162+
* This function returns the object that contains the structure of this attachment.
163+
*
164+
* @return \stdClass
165+
*/
166+
public function getStructure()
167+
{
168+
return $this->structure;
169+
}
170+
161171
/**
162172
* This function saves the attachment to the passed directory, keeping the original name of the file.
163173
*

0 commit comments

Comments
 (0)