Skip to content

Commit

Permalink
Add comment to PropertyAccessor interface
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Dec 8, 2024
1 parent 8c9bfca commit 6ff2b13
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Mapping/PropertyAccessors/PropertyAccessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@

namespace Doctrine\ORM\Mapping\PropertyAccessors;

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

0 comments on commit 6ff2b13

Please sign in to comment.