Skip to content

Commit 06f2788

Browse files
author
Ben Batschelet
committed
Add countable interface to classes with count() method
1 parent 4018c61 commit 06f2788

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/internal/Magento/Framework/DB/Tree/NodeSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* TODO implements iterators
1010
*
1111
*/
12-
class NodeSet implements \Iterator
12+
class NodeSet implements \Iterator, \Countable
1313
{
1414
/**
1515
* @var Node[]

lib/internal/Magento/Framework/Data/Form/Element/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* @author Magento Core Team <core@magentocommerce.com>
1515
*/
16-
class Collection implements \ArrayAccess, \IteratorAggregate
16+
class Collection implements \ArrayAccess, \IteratorAggregate, \Countable
1717
{
1818
/**
1919
* Elements storage

lib/internal/Magento/Framework/Data/Tree/Node/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/**
1818
* @api
1919
*/
20-
class Collection implements \ArrayAccess, \IteratorAggregate
20+
class Collection implements \ArrayAccess, \IteratorAggregate, \Countable
2121
{
2222
/**
2323
* @var array

0 commit comments

Comments
 (0)