ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SAML2\Certificate\KeyCollection Class Reference

Simple collection object for transporting keys. More...

+ Inheritance diagram for SAML2\Certificate\KeyCollection:
+ Collaboration diagram for SAML2\Certificate\KeyCollection:

Public Member Functions

 add ($key)
 Add a key to the collection. More...
 
- Public Member Functions inherited from SAML2\Utilities\ArrayCollection
 __construct (array $elements=array())
 
 add ($element)
 Add an element to the collection. More...
 
 get ($key)
 Get the element at index. More...
 
 filter (\Closure $f)
 
 set ($key, $value)
 Set the value for index. More...
 
 remove ($element)
 
 getOnlyElement ()
 Shorthand for getting a single element that also must be the only element in the collection. More...
 
 first ()
 Return the first element from the collection. More...
 
 last ()
 Return the last element from the collection. More...
 
 map (\Closure $function)
 Applies the given function to each element in the collection and returns a new collection with the elements returned by the function. More...
 
 count ()
 
 getIterator ()
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 

Additional Inherited Members

- Protected Attributes inherited from SAML2\Utilities\ArrayCollection
 $elements
 

Detailed Description

Simple collection object for transporting keys.

Definition at line 11 of file KeyCollection.php.

Member Function Documentation

◆ add()

SAML2\Certificate\KeyCollection::add (   $key)

Add a key to the collection.

Parameters
\SAML2\Certificate\Key$key

Implements SAML2\Utilities\Collection.

Definition at line 18 of file KeyCollection.php.

References $key, add(), and SAML2\Exception\InvalidArgumentException\invalidType().

19  {
20  if (!$key instanceof Key) {
22  'SAML2\Certificate\Key',
23  $key
24  );
25  }
26 
28  }
add()
Definition: add.php:2
$key
Definition: croninfo.php:18
+ Here is the call graph for this function:

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