diff -r 000000000000 -r 4eba9c11703f web/Zend/Cloud/DocumentService/DocumentSet.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/Cloud/DocumentService/DocumentSet.php Mon Dec 13 18:29:26 2010 +0100 @@ -0,0 +1,68 @@ +_documentCount = count($documents); + $this->_documents = new ArrayIterator($documents); + } + + /** + * Countable: number of documents in set + * + * @return int + */ + public function count() + { + return $this->_documentCount; + } + + /** + * IteratorAggregate: retrieve iterator + * + * @return Traversable + */ + public function getIterator() + { + return $this->_documents; + } +}