for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Mbh\Collection;
/**
* MBHFramework
*
* @link https://github.com/MBHFramework/mbh-framework
* @copyright Copyright (c) 2017 Ulises Jeremias Cornejo Fandos
* @license https://github.com/MBHFramework/mbh-framework/blob/master/LICENSE (MIT License)
*/
use Mbh\Collection\Interfaces\Sequenceable as SequenceableInterface;
use RuntimeException;
* The Immutable Array
* This provides special methods for quickly creating an immutable array,
* either from any Traversable, or using a C-optimized fromArray() to directly
* instantiate from. Also includes methods fundamental to functional
* programming, e.g. map, filter, join, and sort.
* @package structures
* @author Ulises Jeremias Cornejo Fandos <[email protected]>
class ImmutableArray extends FixedArray
{
public function sort(callable $callback = null): SequenceableInterface
throw new RuntimeException('Attempt to mutate immutable ' . __CLASS__ . ' object.');
}
public function offsetSet($offset, $value)
public function offsetUnset($offset)
public function clear()