aboutsummaryrefslogtreecommitdiffstats
path: root/Model/Description.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/Description.php
parent63898995a0ef49ec3d38d8370ae252520c28f1ab (diff)
downloadPraspel-b229c04d6119d390ad727e5a70732b2e3bcbd176.zip
Praspel-b229c04d6119d390ad727e5a70732b2e3bcbd176.tar.gz
Praspel-b229c04d6119d390ad727e5a70732b2e3bcbd176.tar.bz2
Use Hoa\Iterator\Map.
Diffstat (limited to 'Model/Description.php')
-rw-r--r--Model/Description.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/Model/Description.php b/Model/Description.php
index 7e9dace..926d6cb 100644
--- a/Model/Description.php
+++ b/Model/Description.php
@@ -46,7 +46,12 @@ from('Hoa')
/**
* \Hoa\Iterator\Aggregate
*/
--> import('Iterator.Aggregate');
+-> import('Iterator.Aggregate')
+
+/**
+ * \Hoa\Iterator\Map
+ */
+-> import('Iterator.Map');
}
@@ -147,11 +152,11 @@ class Description
* Iterator over examples.
*
* @access public
- * @return \ArrayIterator
+ * @return \Hoa\Iterator\Map
*/
public function getIterator ( ) {
- return new \ArrayIterator($this->_examples);
+ return new \Hoa\Iterator\Map($this->_examples);
}
/**