Address PR comment's

Fix tests
This commit is contained in:
Nicolas Le Goff
2013-05-27 18:19:44 +02:00
committed by Romain Neutron
parent 848413dead
commit b52e4ee8c0
30 changed files with 369 additions and 191 deletions

View File

@@ -14,7 +14,7 @@
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com
*/
class databox_descriptionStructure implements IteratorAggregate
class databox_descriptionStructure implements IteratorAggregate, Countable
{
/**
*
@@ -138,4 +138,13 @@ class databox_descriptionStructure implements IteratorAggregate
return $element->toArray();
}, array_values($this->elements));
}
/**
* {@inheritdoc}
*/
public function count()
{
return count($this->elements);
}
}