ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Refinery\URI\StringTransformation Class Reference
+ Inheritance diagram for ILIAS\Refinery\URI\StringTransformation:
+ Collaboration diagram for ILIAS\Refinery\URI\StringTransformation:

Public Member Functions

 transform ($from)
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\Refinery\Transformation
 transform ($from)
 Perform the transformation. More...
 
 applyTo (Result $result)
 Perform the transformation and reify possible failures. More...
 
 __invoke ($from)
 Transformations should be callable. More...
 

Detailed Description

Definition at line 29 of file StringTransformation.php.

Member Function Documentation

◆ transform()

ILIAS\Refinery\URI\StringTransformation::transform (   $from)

@inheritDoc

Implements ILIAS\Refinery\Transformation.

Definition at line 37 of file StringTransformation.php.

37 : string
38 {
39 if (false === $from instanceof URI) {
40 throw new ConstraintViolationException(
41 sprintf('The value MUST be of type "%s"', URI::class),
42 'not_uri_object'
43 );
44 }
45
46 return $from->__toString();
47 }

The documentation for this class was generated from the following file: