Version 1
[yaffs-website] / vendor / php-instagram-api / php-instagram-api / Instagram / Collection / CommentCollection.php
diff --git a/vendor/php-instagram-api/php-instagram-api/Instagram/Collection/CommentCollection.php b/vendor/php-instagram-api/php-instagram-api/Instagram/Collection/CommentCollection.php
new file mode 100644 (file)
index 0000000..d6a2e31
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+
+/**
+* Instagram PHP
+* @author Galen Grover <galenjr@gmail.com>
+* @license http://opensource.org/licenses/mit-license.php The MIT License
+*/
+
+namespace Instagram\Collection;
+
+/**
+ * Comment Collection
+ *
+ * Holds a collection of comments
+ */
+class CommentCollection extends \Instagram\Collection\CollectionAbstract {
+
+    /**
+     * Set the collection data
+     *
+     * @param StdClass $raw_data
+     * @access public
+     */
+    public function setData( $raw_data ) {
+        $this->data = $raw_data->data;
+        $this->convertData( '\Instagram\Comment' );
+    }
+
+}
\ No newline at end of file