diff options
Diffstat (limited to 'vendor/doctrine/persistence/src/Persistence/NotifyPropertyChanged.php')
| -rw-r--r-- | vendor/doctrine/persistence/src/Persistence/NotifyPropertyChanged.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/doctrine/persistence/src/Persistence/NotifyPropertyChanged.php b/vendor/doctrine/persistence/src/Persistence/NotifyPropertyChanged.php new file mode 100644 index 0000000..8eecf9b --- /dev/null +++ b/vendor/doctrine/persistence/src/Persistence/NotifyPropertyChanged.php | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\Persistence; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Interface for classes that notify event listeners of changes to their managed properties. | ||
| 9 | * | ||
| 10 | * This interface is implemented by objects that manually want to notify their object manager or | ||
| 11 | * other listeners when properties change, instead of relying on the object manager to compute | ||
| 12 | * property changes itself when changes are to be persisted. | ||
| 13 | */ | ||
| 14 | interface NotifyPropertyChanged | ||
| 15 | { | ||
| 16 | /** | ||
| 17 | * Adds a listener that wants to be notified about property changes. | ||
| 18 | * | ||
| 19 | * @return void | ||
| 20 | */ | ||
| 21 | public function addPropertyChangedListener(PropertyChangedListener $listener); | ||
| 22 | } | ||
