for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Collections\Traits;
use Collections\Exception\InvalidOperationException;
trait ImmMapLikeTrait
{
use ConstMapLikeTrait, CommonImmMutableContainerTrait;
/**
* identical to at, implemented for ArrayAccess
*/
public function offsetGet($offset)
return $this->at($offset);
}
public function offsetSet($offset, $value)
$offset
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$value
throw InvalidOperationException::unsupportedSet($this);
public function offsetUnset($offset)
throw InvalidOperationException::unsupportedUnset($this);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.