interface ArrayInterface
`ArrayInterface` provides traversable array functionality to data types.
@template T @extends ArrayAccess<array-key, T> @extends IteratorAggregate<array-key, T>
Hierarchy
- interface \Ramsey\Collection\ArrayInterface extends \ArrayAccess \Countable \IteratorAggregate
Expanded class hierarchy of ArrayInterface
All classes that implement ArrayInterface
1 file declares its use of ArrayInterface
- MapInterface.php in vendor/
ramsey/ collection/ src/ Map/ MapInterface.php
File
-
vendor/
ramsey/ collection/ src/ ArrayInterface.php, line 28
Namespace
Ramsey\CollectionView source
interface ArrayInterface extends ArrayAccess, Countable, IteratorAggregate {
/**
* Removes all items from this array.
*/
public function clear() : void;
/**
* Returns a native PHP array representation of this array object.
*
* @return array<array-key, T>
*/
public function toArray() : array;
/**
* Returns `true` if this array is empty.
*/
public function isEmpty() : bool;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
ArrayInterface::clear | public | function | Removes all items from this array. | 1 |
ArrayInterface::isEmpty | public | function | Returns `true` if this array is empty. | 1 |
ArrayInterface::toArray | public | function | Returns a native PHP array representation of this array object. | 1 |