ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
trait.ilObjFileTransformation.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
23
28{
29 public function getEmptyStringToNullTransformation(): Transformation
30 {
31 return $this->getRefinery()->custom()->transformation(static fn($text) => (empty($text)) ? null : $text);
32 }
33
34 abstract protected function getRefinery(): Factory;
35}
Builds data types.
Definition: Factory.php:36
A transformation is a function from one datatype to another.
trait ilObjFileTransformation