mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-01 03:26:36 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			744 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			744 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| /**
 | |
|  * @link https://www.yiiframework.com/
 | |
|  * @copyright Copyright (c) 2008 Yii Software LLC
 | |
|  * @license https://www.yiiframework.com/license/
 | |
|  */
 | |
| 
 | |
| namespace yii\db;
 | |
| 
 | |
| /**
 | |
|  * Class ExpressionBuilder builds objects of [[yii\db\Expression]] class.
 | |
|  *
 | |
|  * @author Dmitry Naumenko <d.naumenko.a@gmail.com>
 | |
|  * @since 2.0.14
 | |
|  */
 | |
| class ExpressionBuilder implements ExpressionBuilderInterface
 | |
| {
 | |
|     use ExpressionBuilderTrait;
 | |
| 
 | |
| 
 | |
|     /**
 | |
|      * {@inheritdoc}
 | |
|      * @param Expression|ExpressionInterface $expression the expression to be built
 | |
|      */
 | |
|     public function build(ExpressionInterface $expression, array &$params = [])
 | |
|     {
 | |
|         $params = array_merge($params, $expression->params);
 | |
|         return $expression->__toString();
 | |
|     }
 | |
| }
 | 
