You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
348 B
PHP
17 lines
348 B
PHP
<?php
|
|
|
|
namespace jrosset\ArrayClasses;
|
|
|
|
/**
|
|
* An array
|
|
*/
|
|
class ArrayClass extends ImmutableArrayClass implements IArrayClass {
|
|
use TInternalArray;
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function toImmutable (): IImmutableArrayClass {
|
|
return new ImmutableArrayClass($this->array, $this->throwsForNonExistentElement());
|
|
}
|
|
} |