Yaffs site version 1.1
[yaffs-website] / vendor / php-instagram-api / php-instagram-api / Instagram / Collection / TagCollection.php
diff --git a/vendor/php-instagram-api/php-instagram-api/Instagram/Collection/TagCollection.php b/vendor/php-instagram-api/php-instagram-api/Instagram/Collection/TagCollection.php
deleted file mode 100644 (file)
index 78a8d0f..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-
-/**
-* Instagram PHP
-* @author Galen Grover <galenjr@gmail.com>
-* @license http://opensource.org/licenses/mit-license.php The MIT License
-*/
-
-namespace Instagram\Collection;
-
-/**
- * Tag Collection
- *
- * Holds a collection of tags
- */
-class TagCollection extends \Instagram\Collection\CollectionAbstract {
-
-    /**
-     * Set the collection data
-     *
-     * @param StdClass $raw_data
-     * @access public
-     */
-    public function setData( $raw_data ) {
-        if ( isset( $raw_data->data ) ) {
-            $this->data = $raw_data->data;
-        }
-        elseif( is_array( $raw_data ) ) {
-            $this->data = array_map( function( $t ){ return (object)array( 'name' => $t ); }, $raw_data );
-        }
-        $this->convertData( '\Instagram\Tag' );
-    }
-
-    /**
-     * Get an array of tag names
-     * 
-     * @return array Returns an array of tags
-     * @access public
-     */
-    public function toArray() {
-        $tags = array();
-        foreach( $this->data as $tag ) {
-            $tags[] = $tag->getName();
-        }
-        return $tags;
-    }
-
-}
\ No newline at end of file