NotifyPropertyChanged.php 632 B

1234567891011121314151617181920
  1. <?php
  2. namespace Doctrine\Persistence;
  3. /**
  4. * Interface for classes that notify event listeners of changes to their managed properties.
  5. *
  6. * This interface is implemented by objects that manually want to notify their object manager or
  7. * other listeners when properties change, instead of relying on the object manager to compute
  8. * property changes itself when changes are to be persisted.
  9. */
  10. interface NotifyPropertyChanged
  11. {
  12. /**
  13. * Adds a listener that wants to be notified about property changes.
  14. *
  15. * @return void
  16. */
  17. public function addPropertyChangedListener(PropertyChangedListener $listener);
  18. }