function AbstractMap::__construct
Parameters
array<K, T> $data The initial items to add to this map.:
Overrides AbstractArray::__construct
4 calls to AbstractMap::__construct()
- NamedParameterMap::__construct in vendor/
ramsey/ collection/ src/ Map/ NamedParameterMap.php - Constructs a new `NamedParameterMap`.
- NamedParameterMap::__construct in vendor/
ramsey/ collection/ src/ Map/ NamedParameterMap.php - Constructs a new `NamedParameterMap`.
- TypedMap::__construct in vendor/
ramsey/ collection/ src/ Map/ TypedMap.php - Constructs a map object of the specified key and value types, optionally with the specified data.
- TypedMap::__construct in vendor/
ramsey/ collection/ src/ Map/ TypedMap.php - Constructs a map object of the specified key and value types, optionally with the specified data.
2 methods override AbstractMap::__construct()
- NamedParameterMap::__construct in vendor/
ramsey/ collection/ src/ Map/ NamedParameterMap.php - Constructs a new `NamedParameterMap`.
- TypedMap::__construct in vendor/
ramsey/ collection/ src/ Map/ TypedMap.php - Constructs a map object of the specified key and value types, optionally with the specified data.
File
-
vendor/
ramsey/ collection/ src/ Map/ AbstractMap.php, line 40
Class
- AbstractMap
- This class provides a basic implementation of `MapInterface`, to minimize the effort required to implement this interface.
Namespace
Ramsey\Collection\MapCode
public function __construct(array $data = []) {
parent::__construct($data);
}