aboutsummaryrefslogtreecommitdiffstats
path: root/Model/Collection.php
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-05-13 16:01:06 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-05-13 16:01:06 +0200
commitb229c04d6119d390ad727e5a70732b2e3bcbd176 (patch)
treedaaf759392e66624626f279cb526efe97c07369d /Model/Collection.php
parent63898995a0ef49ec3d38d8370ae252520c28f1ab (diff)
downloadPraspel-b229c04d6119d390ad727e5a70732b2e3bcbd176.zip
Praspel-b229c04d6119d390ad727e5a70732b2e3bcbd176.tar.gz
Praspel-b229c04d6119d390ad727e5a70732b2e3bcbd176.tar.bz2
Use Hoa\Iterator\Map.
Diffstat (limited to 'Model/Collection.php')
-rw-r--r--Model/Collection.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/Model/Collection.php b/Model/Collection.php
index 3d963dd..f84a507 100644
--- a/Model/Collection.php
+++ b/Model/Collection.php
@@ -51,7 +51,12 @@ from('Hoa')
/**
* \Hoa\Iterator\Aggregate
*/
--> import('Iterator.Aggregate');
+-> import('Iterator.Aggregate')
+
+/**
+ * \Hoa\Iterator\Map
+ */
+-> import('Iterator.Map');
}
@@ -209,11 +214,11 @@ class Collection
* Iterate over all clauses.
*
* @access public
- * @return \ArrayIterator
+ * @return \Hoa\Iterator\Map
*/
public function getIterator ( ) {
- return new \ArrayIterator($this->_clauses);
+ return new \Hoa\Iterator\Map($this->_clauses);
}
/**