tomasz154/php-streams

View on GitHub
src/Stream/ArrayStream.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace T2\Streams\Stream;

class ArrayStream extends IteratorStream
{
    public function __construct(array $array)
    {
        parent::__construct(new \ArrayIterator($array));
    }

    public function isBounded()
    {
        return true;
    }
}