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 MutableSet extends AbstractMutableCollection
{
* @param array $values
public function __construct($values)
parent::__construct(array_fill_keys($values, true));
}
* @inheritdoc
public function contains($value)
return $this->containsKey($value);
public function get($key)
$this->assertContainsKey($key);
return $key;
public function add($value)
$this->values[$value] = true;
public function set($key, $value)
$this->add($value);
public function remove($value)
$this->removeKey($value);