mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-10-31 18:47:33 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			600 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			600 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /**
 | |
|  * @link https://www.yiiframework.com/
 | |
|  * @copyright Copyright (c) 2008 Yii Software LLC
 | |
|  * @license https://www.yiiframework.com/license/
 | |
|  */
 | |
| 
 | |
| namespace yii\db\conditions;
 | |
| 
 | |
| /**
 | |
|  * Condition that connects two or more SQL expressions with the `AND` operator.
 | |
|  *
 | |
|  * @author Dmytro Naumenko <d.naumenko.a@gmail.com>
 | |
|  * @since 2.0.14
 | |
|  */
 | |
| class AndCondition extends ConjunctionCondition
 | |
| {
 | |
|     /**
 | |
|      * Returns the operator that is represented by this condition class, e.g. `AND`, `OR`.
 | |
|      *
 | |
|      * @return string
 | |
|      */
 | |
|     public function getOperator()
 | |
|     {
 | |
|         return 'AND';
 | |
|     }
 | |
| }
 | 
