diff --git a/src/lib/Strategy/DefaultThumbnailStrategy.php b/src/lib/Strategy/DefaultThumbnailStrategy.php index ede78f4..2ecd698 100644 --- a/src/lib/Strategy/DefaultThumbnailStrategy.php +++ b/src/lib/Strategy/DefaultThumbnailStrategy.php @@ -57,8 +57,8 @@ private function getInitials(array $fields): string foreach ($this->initialsFieldDefIdentifiers as $identifier) { /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Field $field */ foreach ($fields as $field) { - if ($field->fieldDefIdentifier === $identifier) { - $initials .= substr((string)$field->value, 0, 1); + if ($field->getFieldDefinitionIdentifier() === $identifier) { + $initials .= substr((string)$field->getValue(), 0, 1); } } } diff --git a/src/lib/UserSetting/UserSetting.php b/src/lib/UserSetting/UserSetting.php index 0c5dbd0..5f3a092 100644 --- a/src/lib/UserSetting/UserSetting.php +++ b/src/lib/UserSetting/UserSetting.php @@ -11,10 +11,10 @@ use Ibexa\Contracts\Core\Repository\Values\ValueObject; /** - * @property string $identifier - * @property string $name - * @property string $description - * @property string $value + * @property string $identifier @deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use {@see UserSetting::getIdentifier()} instead. + * @property string $name @deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use {@see UserSetting::getName()} instead. + * @property string $description @deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use {@see UserSetting::getDescription()} instead. + * @property string $value @deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use {@see UserSetting::getValue()} instead. */ class UserSetting extends ValueObject { @@ -29,4 +29,24 @@ class UserSetting extends ValueObject /** @var string */ protected $value; + + public function getIdentifier(): string + { + return $this->identifier; + } + + public function getName(): string + { + return $this->name; + } + + public function getDescription(): string + { + return $this->description; + } + + public function getValue(): string + { + return $this->value; + } }