ModelEvent.php 538 B

123456789101112131415161718192021222324
  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 represents the parameter needed by [[Model]] events.
  10. *
  11. * @author Qiang Xue <qiang.xue@gmail.com>
  12. * @since 2.0
  13. */
  14. class ModelEvent extends Event
  15. {
  16. /**
  17. * @var bool whether the model is in valid status. Defaults to true.
  18. * A model is in valid status if it passes validations or certain checks.
  19. */
  20. public $isValid = true;
  21. }