ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
StringTransformation.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Refinery\URI;
22
28
30{
33
37 public function transform($from): string
38 {
39 if (false === $from instanceof URI) {
41 sprintf('The value MUST be of type "%s"', URI::class),
42 'not_uri_object'
43 );
44 }
45
46 return $from->__toString();
47 }
48}
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
A transformation is a function from one datatype to another.