From 7ae2c396c061500c4b0ad1032c700acbad9d8d2f Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sat, 12 Oct 2024 03:19:52 +0200 Subject: [PATCH] Mark all PropertyAccessor classes @internal. --- src/Mapping/PropertyAccessors/EmbeddablePropertyAccessor.php | 1 + src/Mapping/PropertyAccessors/EnumPropertyAccessor.php | 1 + src/Mapping/PropertyAccessors/ObjectCastPropertyAccessor.php | 1 + src/Mapping/PropertyAccessors/PropertyAccessor.php | 1 + src/Mapping/PropertyAccessors/ReadonlyAccessor.php | 1 + src/Mapping/PropertyAccessors/TypedNoDefaultPropertyAccessor.php | 1 + 6 files changed, 6 insertions(+) diff --git a/src/Mapping/PropertyAccessors/EmbeddablePropertyAccessor.php b/src/Mapping/PropertyAccessors/EmbeddablePropertyAccessor.php index 39e6fc3590a..1cc3a50b475 100644 --- a/src/Mapping/PropertyAccessors/EmbeddablePropertyAccessor.php +++ b/src/Mapping/PropertyAccessors/EmbeddablePropertyAccessor.php @@ -6,6 +6,7 @@ use Doctrine\Instantiator\Instantiator; +/** @internal */ class EmbeddablePropertyAccessor implements PropertyAccessor { private static Instantiator|null $instantiator = null; diff --git a/src/Mapping/PropertyAccessors/EnumPropertyAccessor.php b/src/Mapping/PropertyAccessors/EnumPropertyAccessor.php index 1cdcbf08ad0..8c9033af60a 100644 --- a/src/Mapping/PropertyAccessors/EnumPropertyAccessor.php +++ b/src/Mapping/PropertyAccessors/EnumPropertyAccessor.php @@ -10,6 +10,7 @@ use function is_array; use function reset; +/** @internal */ class EnumPropertyAccessor implements PropertyAccessor { public function __construct(private PropertyAccessor $parent, private string $enumType) diff --git a/src/Mapping/PropertyAccessors/ObjectCastPropertyAccessor.php b/src/Mapping/PropertyAccessors/ObjectCastPropertyAccessor.php index 7babd0144ac..38810f993a4 100644 --- a/src/Mapping/PropertyAccessors/ObjectCastPropertyAccessor.php +++ b/src/Mapping/PropertyAccessors/ObjectCastPropertyAccessor.php @@ -9,6 +9,7 @@ use function ltrim; +/** @internal */ class ObjectCastPropertyAccessor implements PropertyAccessor { public static function fromNames(string $class, string $name): self diff --git a/src/Mapping/PropertyAccessors/PropertyAccessor.php b/src/Mapping/PropertyAccessors/PropertyAccessor.php index c340e334318..7316d8a348f 100644 --- a/src/Mapping/PropertyAccessors/PropertyAccessor.php +++ b/src/Mapping/PropertyAccessors/PropertyAccessor.php @@ -4,6 +4,7 @@ namespace Doctrine\ORM\Mapping\PropertyAccessors; +/** @internal */ interface PropertyAccessor { public function setValue(object $object, mixed $value): void; diff --git a/src/Mapping/PropertyAccessors/ReadonlyAccessor.php b/src/Mapping/PropertyAccessors/ReadonlyAccessor.php index 56e60d00514..62faf6873df 100644 --- a/src/Mapping/PropertyAccessors/ReadonlyAccessor.php +++ b/src/Mapping/PropertyAccessors/ReadonlyAccessor.php @@ -10,6 +10,7 @@ use function sprintf; +/** @internal */ class ReadonlyAccessor implements PropertyAccessor { public function __construct(private PropertyAccessor $parent, private ReflectionProperty $reflectionProperty) diff --git a/src/Mapping/PropertyAccessors/TypedNoDefaultPropertyAccessor.php b/src/Mapping/PropertyAccessors/TypedNoDefaultPropertyAccessor.php index a35ae5f14c7..87850ad4b4e 100644 --- a/src/Mapping/PropertyAccessors/TypedNoDefaultPropertyAccessor.php +++ b/src/Mapping/PropertyAccessors/TypedNoDefaultPropertyAccessor.php @@ -11,6 +11,7 @@ use function assert; use function sprintf; +/** @internal */ class TypedNoDefaultPropertyAccessor implements PropertyAccessor { private Closure|null $unsetter = null;