for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPKitchen\Platform\Struct\Mixin;
use ArrayIterator;
/**
* Represents implementation of iterator interface for collections.
*
* @property array $elements data storage.
* @author Dmitry Kolodko <[email protected]>
* @since 1.0
*/
trait IteratorMethods {
* Get an iterator for the items.
* @return \ArrayIterator
public function getIterator() {
return new ArrayIterator($this->elements);
}