Map

Implements Countable, IteratorAggregate

A map using Sass values as keys based on Value::equals.

The map can be either modifiable or unmodifiable. For unmodifiable maps, all mutators will throw a LogicException.

Iteration preserves the order in which keys have been inserted.

template

T

template-implements

\IteratorAggregate<Value, T>

package

Application

Methods

assertModifiable

assertModifiable() : void
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

count

count() : int
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 int

The value for the given key, or `null` if $key is not in the map.

get(\ScssPhp\ScssPhp\Value\Valuekey) : \ScssPhp\ScssPhp\Collection\T|null

Arguments

key

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 \ScssPhp\ScssPhp\Value\Value

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 \ScssPhp\ScssPhp\Collection\T|null

getIterator

getIterator() : \Traversable
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 \Traversable

Returns a modifiable version of the Map.

of(\ScssPhp\ScssPhp\Collection\Map<\ScssPhp\ScssPhp\Collection\V>map) : \ScssPhp\ScssPhp\Collection\Map<\ScssPhp\ScssPhp\Collection\V>
static
template

V

Arguments

map

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 \ScssPhp\ScssPhp\Collection\Map<\ScssPhp\ScssPhp\Collection\V>

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 \ScssPhp\ScssPhp\Collection\Map<\ScssPhp\ScssPhp\Collection\V>

Associates the key with the given value.

put(\ScssPhp\ScssPhp\Value\Valuekey, \ScssPhp\ScssPhp\Collection\Tvalue) : void

If the key was already in the map, its associated value is changed. Otherwise the key/value pair is added to the map.

Arguments

key

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 \ScssPhp\ScssPhp\Value\Value

value

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 \ScssPhp\ScssPhp\Collection\T

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Removes $key and its associated value, if present, from the map.

remove(\ScssPhp\ScssPhp\Value\Valuekey) : \ScssPhp\ScssPhp\Collection\T|null

Returns the value associated with key before it was removed. Returns null if key was not in the map.

Note that some maps allow null as a value, so a returned null value doesn't always mean that the key was absent.

Arguments

key

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 \ScssPhp\ScssPhp\Value\Value

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 \ScssPhp\ScssPhp\Collection\T|null

Returns an unmodifiable version of the Map.

unmodifiable(\ScssPhp\ScssPhp\Collection\Map<\ScssPhp\ScssPhp\Collection\V>map) : \ScssPhp\ScssPhp\Collection\Map<\ScssPhp\ScssPhp\Collection\V>
static

All mutators will throw a LogicException when trying to use them.

template

V

Arguments

map

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 \ScssPhp\ScssPhp\Collection\Map<\ScssPhp\ScssPhp\Collection\V>

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 \ScssPhp\ScssPhp\Collection\Map<\ScssPhp\ScssPhp\Collection\V>

Properties

modifiable

modifiable : bool

Type(s)

bool

pairs : array<int,array{: \ScssPhp\ScssPhp\Value\Value, : \ScssPhp\ScssPhp\Collection\T}>
var

Type(s)

array<int, T}>