ExpressionBuilderTrait.php 707 B

12345678910111213141516171819202122232425262728293031323334
  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. * Trait ExpressionBuilderTrait provides common constructor for classes that
  10. * should implement [[ExpressionBuilderInterface]]
  11. *
  12. * @author Dmytro Naumenko <d.naumenko.a@gmail.com>
  13. * @since 2.0.14
  14. */
  15. trait ExpressionBuilderTrait
  16. {
  17. /**
  18. * @var QueryBuilder
  19. */
  20. protected $queryBuilder;
  21. /**
  22. * ExpressionBuilderTrait constructor.
  23. *
  24. * @param QueryBuilder $queryBuilder
  25. */
  26. public function __construct(QueryBuilder $queryBuilder)
  27. {
  28. $this->queryBuilder = $queryBuilder;
  29. }
  30. }