for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Collections\Immutable;
use Collections\ConstSetInterface;
use Collections\Iterator\SetIterator;
use Collections\Traits\ImmSetLikeTrait;
class ImmSet implements ConstSetInterface
each
{
use ImmSetLikeTrait;
public function __construct($array = null)
$this->init($array);
}
/**
* Gets the collection's iterator
* @return SetIterator
*/
public function getIterator()
return new SetIterator($this->container);