Skip to content

Latest commit

 

History

History
107 lines (74 loc) · 1.63 KB

SharedMap.md

File metadata and controls

107 lines (74 loc) · 1.63 KB

SharedMap

  • class SharedMap (php\util\SharedMap) extends SharedCollection
  • package std
  • source php/util/SharedMap.php

Description

Class SharedMap


Methods


Methods

__construct()

__construct(array|Traversable $array): void

get()

get(string $key, mixed $default): mixed

getOrCreate()

getOrCreate(string $key, callable $createCallback): mixed

has()

has(string $key): bool

count()

count(): int

set()

set(string $key, mixed $value, bool $override): mixed

remove()

remove(string $key): mixed

clear()

clear(): void

Remove all items.


isEmpty()

isEmpty(): bool