ILIAS  release_7 Revision v7.30-3-g800a261c036
04-tuple.php File Reference

Go to the source code of this file.

Functions

 toTuple ()
 

Function Documentation

◆ toTuple()

toTuple ( )
Author
Niels Theen nthee.nosp@m.n@da.nosp@m.tabay.nosp@m..de

Definition at line 7 of file 04-tuple.php.

8{
9 global $DIC;
10
11 $refinery = $DIC->refinery();
12
13 $transformation = $refinery->to()->tupleOf(
14 array(
15 new \ILIAS\Refinery\To\Transformation\IntegerTransformation(),
16 new \ILIAS\Refinery\To\Transformation\IntegerTransformation()
17 )
18 );
19
20 $result = $transformation->transform(array(5, 1));
21
22 return assert(array(5, 1) === $result);
23}
$result
global $DIC
Definition: goto.php:24
Class ChatMainBarProvider \MainMenu\Provider.

References $DIC, and $result.