ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ILIAS\FileUpload\Collection\ImmutableMapWrapper Class Reference

Class ImmutableMapWrapper. More...

+ Inheritance diagram for ILIAS\FileUpload\Collection\ImmutableMapWrapper:
+ Collaboration diagram for ILIAS\FileUpload\Collection\ImmutableMapWrapper:

Public Member Functions

 __construct (StringMap $map)
 ImmutableMapWrapper constructor. More...
 
 get ($key)
 
 toArray ()
 
 has ($key)
 

Private Attributes

 $map
 

Detailed Description

Class ImmutableMapWrapper.

This class is used to wrap mutable maps to make them immutable and stops the user of the api to cast the list back to a mutable one.

Author
Nicolas Schäfli ns@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Since
5.3
Version
1.0

Definition at line 17 of file ImmutableMapWrapper.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\FileUpload\Collection\ImmutableMapWrapper::__construct ( StringMap  $map)

ImmutableMapWrapper constructor.

Parameters
StringMap$mapThe mutable map which should be wrapped.
Since
5.3

Definition at line 33 of file ImmutableMapWrapper.php.

References ILIAS\FileUpload\Collection\ImmutableMapWrapper\$map.

Member Function Documentation

◆ get()

ILIAS\FileUpload\Collection\ImmutableMapWrapper::get (   $key)

Implements ILIAS\FileUpload\Collection\ImmutableStringMap.

Definition at line 42 of file ImmutableMapWrapper.php.

References $key.

43  {
44  return $this->map->get($key);
45  }
$key
Definition: croninfo.php:18

◆ has()

ILIAS\FileUpload\Collection\ImmutableMapWrapper::has (   $key)

Implements ILIAS\FileUpload\Collection\ImmutableStringMap.

Definition at line 60 of file ImmutableMapWrapper.php.

References $key.

61  {
62  return $this->map->has($key);
63  }
$key
Definition: croninfo.php:18

◆ toArray()

ILIAS\FileUpload\Collection\ImmutableMapWrapper::toArray ( )

Implements ILIAS\FileUpload\Collection\ImmutableStringMap.

Definition at line 51 of file ImmutableMapWrapper.php.

52  {
53  return $this->map->toArray();
54  }

Field Documentation

◆ $map

ILIAS\FileUpload\Collection\ImmutableMapWrapper::$map
private

The documentation for this class was generated from the following file: