/**
  * @param CollectionInfo $info
  * @return models\Collection
  */
 public static function newFromCollectionInfo($info)
 {
     return new Collection($info->getId(), $info->getOwner(), $info->getTitle(), $info->getDescription(), $info->isPublic(), $info->getFile());
 }
 /**
  * Adds a item to the collection.
  * If the collection to add is private, and this collection list does not include
  * private items, the collection won't be added
  * @param CollectionInfo $collection
  */
 public function add(CollectionInfo $collection)
 {
     if ($this->includePrivate || !$this->includePrivate && $collection->isPublic()) {
         $this->collections[] = $collection;
     }
 }