AndCondition.php 598 B

12345678910111213141516171819202122232425262728
  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\conditions;
  8. /**
  9. * Condition that connects two or more SQL expressions with the `AND` operator.
  10. *
  11. * @author Dmytro Naumenko <d.naumenko.a@gmail.com>
  12. * @since 2.0.14
  13. */
  14. class AndCondition extends ConjunctionCondition
  15. {
  16. /**
  17. * Returns the operator that is represented by this condition class, e.g. `AND`, `OR`.
  18. *
  19. * @return string
  20. */
  21. public function getOperator()
  22. {
  23. return 'AND';
  24. }
  25. }