for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Oqq\Minc\Common\Collection;
use Oqq\Minc\Common\Collection\Exception\ImmutableCollectionMutateException;
/**
* @author Eric Braun <[email protected]>
*/
abstract class AbstractImmutableCollection extends AbstractCollection implements ImmutableCollectionInterface
{
* @inheritdoc
public function add($value)
$this->throwException();
}
public function set($key, $value)
public function remove($value)
public function removeKey($key)
* @throws ImmutableCollectionMutateException
protected function throwException()
throw new ImmutableCollectionMutateException();