ModelEvent.php 546 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\base;
  8. /**
  9. * ModelEvent class.
  10. *
  11. * ModelEvent represents the parameter needed by model events.
  12. *
  13. * @author Qiang Xue <[email protected]>
  14. * @since 2.0
  15. */
  16. class ModelEvent extends Event
  17. {
  18. /**
  19. * @var boolean whether the model is in valid status. Defaults to true.
  20. * A model is in valid status if it passes validations or certain checks.
  21. */
  22. public $isValid = true;
  23. }