Constraint.php 566 B

1234567891011121314151617181920212223242526272829
  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. use yii\base\BaseObject;
  9. /**
  10. * Constraint represents the metadata of a table constraint.
  11. *
  12. * @author Sergey Makinen <sergey@makinen.ru>
  13. * @since 2.0.13
  14. */
  15. class Constraint extends BaseObject
  16. {
  17. /**
  18. * @var string[]|null list of column names the constraint belongs to.
  19. */
  20. public $columnNames;
  21. /**
  22. * @var string|null the constraint name.
  23. */
  24. public $name;
  25. }