Definition at line 26 of file ByTrying.php.
◆ __construct()
ILIAS\Refinery\ByTrying::__construct |
( |
array |
$transformations, |
|
|
Data\Factory |
$data_factory |
|
) |
| |
◆ getError()
ILIAS\Refinery\ByTrying::getError |
( |
| ) |
|
|
protected |
◆ transform()
ILIAS\Refinery\ByTrying::transform |
( |
|
$from | ) |
|
Implements ILIAS\Refinery\Transformation.
Definition at line 65 of file ByTrying.php.
References ILIAS\Refinery\getErrorMessage().
67 foreach ($this->transformations as $transformation) {
68 $result = $this->data_factory->ok($from);
69 $result = $transformation->applyTo($result);
70 if ($result->isOK()) {
71 return $result->value();
getErrorMessage($value)
Get the problem message.
◆ $data_factory
Data Factory ILIAS\Refinery\ByTrying::$data_factory |
|
private |
◆ $error
ILIAS\Refinery\ByTrying::$error |
|
private |
◆ $transformations
array ILIAS\Refinery\ByTrying::$transformations |
|
private |
The documentation for this class was generated from the following file: