Skip to content

Commit 6ff2b13

Browse files
committed
Add comment to PropertyAccessor interface
1 parent 8c9bfca commit 6ff2b13

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/Mapping/PropertyAccessors/PropertyAccessor.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,17 @@
44

55
namespace Doctrine\ORM\Mapping\PropertyAccessors;
66

7-
/** @internal */
7+
/**
8+
* A property accessor is a class that allows to read and write properties on objects regardless of visibility.
9+
*
10+
* We use them while creating objects from database rows in {@link UnitOfWork::createEntity()} or when
11+
* computing changesets from objects that are about the written back to the database in {@link UnitOfWork::computeChangeSet()}.
12+
*
13+
* This abstraction over ReflectionProperty is necessary, because for several features of either Doctrine or PHP, we
14+
* need to handle edge cases in reflection at a central location in the code.
15+
*
16+
* @internal
17+
*/
818
interface PropertyAccessor
919
{
1020
public function setValue(object $object, mixed $value): void;

0 commit comments

Comments
 (0)