for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File ImmutableCollection.php
*
* @author Edward Pfremmer <[email protected]>
*/
namespace Epfremme\Collection;
use Epfremme\Exception\ImmutableException;
* Class ImmutableCollection
* @package Epfremme\Collection
class ImmutableCollection extends BaseCollection
{
* Prevent removing elements
* @param mixed $offset
* @throws ImmutableException
public function offsetUnset($offset)
throw new ImmutableException();
}
* Prevent setting elements
* @param mixed $value
public function offsetSet($offset, $value)