12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /**
- * @link http://www.yiiframework.com/
- * @copyright Copyright (c) 2008 Yii Software LLC
- * @license http://www.yiiframework.com/license/
- */
- namespace yii\db;
- /**
- * Trait ExpressionBuilderTrait provides common constructor for classes that
- * should implement [[ExpressionBuilderInterface]]
- *
- * @author Dmytro Naumenko <d.naumenko.a@gmail.com>
- * @since 2.0.14
- */
- trait ExpressionBuilderTrait
- {
- /**
- * @var QueryBuilder
- */
- protected $queryBuilder;
- /**
- * ExpressionBuilderTrait constructor.
- *
- * @param QueryBuilder $queryBuilder
- */
- public function __construct(QueryBuilder $queryBuilder)
- {
- $this->queryBuilder = $queryBuilder;
- }
- }
|