Skip to content

Commit 9d7044d

Browse files
committed
feat(contract): add PropertyChangeApplier interface to define change application behavior
- Introduce `PropertyChangeApplier` interface to define the contract for applying processed changes to entities - Ensure consistent behavior for classes that modify entity properties, starting with `AttributeHandler`
1 parent 5b3d9d4 commit 9d7044d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace KaririCode\PropertyInspector\Contract;
6+
7+
/**
8+
* Interface PropertyChangeApplier.
9+
*
10+
* Defines the contract for classes that apply changes to an object.
11+
*/
12+
interface PropertyChangeApplier
13+
{
14+
/**
15+
* Applies the processed changes to the given object.
16+
*
17+
* @param object $object The object to which the changes will be applied
18+
*/
19+
public function applyChanges(object $object): void;
20+
}

0 commit comments

Comments
 (0)