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 ImmVectorLikeTrait
{
use ConstVectorLikeTrait, CommonImmMutableContainerTrait;
/**
* identical to at, implemented for ArrayAccess
*/
public function offsetGet($offset)
$this->validateKeyType($offset);
$this->validateKeyBounds($offset);
return $this->container[$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.