eZ\Publish\Core\FieldType\Value::__toString PHP Method

__toString() abstract public method

Returns a string representation of the field value.
abstract public __toString ( ) : string
return string
    public abstract function __toString();

Usage Example

 protected function checkValueStructure(CoreValue $value)
 {
     if ($value->__toString() === '') {
         throw new InvalidArgumentValue('$value->id', 'empty', $value->__toString());
     }
 }