ForeignKeyConstraint.php 937 B

123456789101112131415161718192021222324252627282930313233343536373839
  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\db;
  8. /**
  9. * ForeignKeyConstraint represents the metadata of a table `FOREIGN KEY` constraint.
  10. *
  11. * @author Sergey Makinen <sergey@makinen.ru>
  12. * @since 2.0.13
  13. */
  14. class ForeignKeyConstraint extends Constraint
  15. {
  16. /**
  17. * @var string|null referenced table schema name.
  18. */
  19. public $foreignSchemaName;
  20. /**
  21. * @var string referenced table name.
  22. */
  23. public $foreignTableName;
  24. /**
  25. * @var string[] list of referenced table column names.
  26. */
  27. public $foreignColumnNames;
  28. /**
  29. * @var string|null referential action if rows in a referenced table are to be updated.
  30. */
  31. public $onUpdate;
  32. /**
  33. * @var string|null referential action if rows in a referenced table are to be deleted.
  34. */
  35. public $onDelete;
  36. }