for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Oqq\Minc\Common\Collection;
/**
* @author Eric Braun <[email protected]>
*/
abstract class AbstractMutableCollection extends AbstractCollection implements MutableCollectionInterface
{
* @inheritdoc
public function __set($key, $value)
$this->set($key, $value);
}
public function add($value)
$this->values[] = $value;
public function set($key, $value)
$this->values[$key] = $value;
public function removeKey($key)
unset($this->values[$key]);
public function remove($value)
foreach (array_keys($this->values, $value, true) as $key) {