ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ImmutableMapWrapper.php
Go to the documentation of this file.
1 <?php
2 
4 
5 /******************************************************************************
6  *
7  * This file is part of ILIAS, a powerful learning management system.
8  *
9  * ILIAS is licensed with the GPL-3.0, you should have received a copy
10  * of said license along with the source code.
11  *
12  * If this is not the case or you just want to try ILIAS, you'll find
13  * us at:
14  * https://www.ilias.de
15  * https://github.com/ILIAS-eLearning
16  *
17  *****************************************************************************/
31 {
32  private \ILIAS\FileUpload\Collection\StringMap $map;
33 
34 
42  public function __construct(StringMap $map)
43  {
44  $this->map = $map;
45  }
46 
47 
51  public function get(string $key): string
52  {
53  return $this->map->get($key);
54  }
55 
56 
60  public function toArray(): array
61  {
62  return $this->map->toArray();
63  }
64 
65 
69  public function has(string $key): bool
70  {
71  return $this->map->has($key);
72  }
73 }
ILIAS FileUpload Collection StringMap $map
__construct(StringMap $map)
ImmutableMapWrapper constructor.
string $key
Consumer key/client ID value.
Definition: System.php:193