11 $refinery =
$DIC->refinery();
13 $transformation = $refinery->to()->recordOf(
15 'user_id' =>
new \
ILIAS\Refinery\To\Transformation\IntegerTransformation(),
16 'points' =>
new \
ILIAS\Refinery\To\Transformation\IntegerTransformation()
20 $result = $transformation->transform(array(
'user_id' => 5,
'points' => 1));
22 return assert(array(
'user_id' => 5,
'points' => 1) ===
$result);
An exception for terminatinating execution or to throw for unit testing.
Class ChatMainBarProvider \MainMenu\Provider.