public function getString()
{
$this->checkState();
if ($this->type === PropertyType::BINARY && empty($this->value)) {
return $this->valueConverter->convertType($this->getBinary(), PropertyType::STRING, $this->type);
}
if ($this->type !== PropertyType::STRING) {
return $this->valueConverter->convertType($this->value, PropertyType::STRING, $this->type);
}
return $this->value;
}