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]>
*/
class MutableVector extends AbstractMutableCollection
{
* @param array ...$values
public function __construct(...$values)
parent::__construct($values);
}
* @inheritdoc
public function set($key, $value)
$this->assertContainsKey($key);
parent::set($key, $value);
$this->resetKeys();
public function removeKey($key)
parent::removeKey($key);
public function remove($value)
parent::remove($value);
protected function resetKeys()
$this->values = array_values($this->values);