7use ILIAS\FileUpload\ScalarTypeCheckAware;
23 use ScalarTypeCheckAware;
35 $this->map = new \ArrayObject();
51 public function get($key)
53 $this->stringTypeCheck($key,
'key');
55 if ($this->map->offsetExists($key)) {
56 return $this->map->offsetGet($key);
72 return $this->map->getArrayCopy();
87 public function has($key)
89 $this->stringTypeCheck($key,
'key');
91 return $this->map->offsetExists($key);
110 public function put($key, $value)
112 $this->stringTypeCheck($key,
'key');
113 $this->stringTypeCheck($value,
'value');
115 if ($this->map->offsetExists($key)) {
119 $this->map->offsetSet($key, $value);
An exception for terminatinating execution or to throw for unit testing.
Class EntryLockingStringMap.
has($key)
Probe if the key is known and associated with a value.
put($key, $value)
Puts a new key value pair into the string array.
__construct()
EntryLockingStringMap constructor.
toArray()
Returns all currently known entries.
Class ElementAlreadyExistsException.
Class MetadataNotFoundException.