Skip to content

Commit

Permalink
Mark all PropertyAccessor classes @internal.
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Oct 12, 2024
1 parent 9d3b1b1 commit 7ae2c39
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Doctrine\Instantiator\Instantiator;

/** @internal */
class EmbeddablePropertyAccessor implements PropertyAccessor
{
private static Instantiator|null $instantiator = null;
Expand Down
1 change: 1 addition & 0 deletions src/Mapping/PropertyAccessors/EnumPropertyAccessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

use function ltrim;

/** @internal */
class ObjectCastPropertyAccessor implements PropertyAccessor
{
public static function fromNames(string $class, string $name): self

Check warning on line 15 in src/Mapping/PropertyAccessors/ObjectCastPropertyAccessor.php

View check run for this annotation

Codecov / codecov/patch

src/Mapping/PropertyAccessors/ObjectCastPropertyAccessor.php#L15

Added line #L15 was not covered by tests
Expand Down
1 change: 1 addition & 0 deletions src/Mapping/PropertyAccessors/PropertyAccessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Doctrine\ORM\Mapping\PropertyAccessors;

/** @internal */
interface PropertyAccessor
{
public function setValue(object $object, mixed $value): void;
Expand Down
1 change: 1 addition & 0 deletions src/Mapping/PropertyAccessors/ReadonlyAccessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

use function sprintf;

/** @internal */
class ReadonlyAccessor implements PropertyAccessor
{
public function __construct(private PropertyAccessor $parent, private ReflectionProperty $reflectionProperty)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use function assert;
use function sprintf;

/** @internal */
class TypedNoDefaultPropertyAccessor implements PropertyAccessor
{
private Closure|null $unsetter = null;
Expand Down

0 comments on commit 7ae2c39

Please sign in to comment.