Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ArrayInterface.php

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\Collection
View 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal