ExpressionBuilderInterface.php 860 B

1234567891011121314151617181920212223242526272829
  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. * Interface ExpressionBuilderInterface is designed to build raw SQL from specific expression
  10. * objects that implement [[ExpressionInterface]].
  11. *
  12. * @author Dmitry Naumenko <d.naumenko.a@gmail.com>
  13. * @since 2.0.14
  14. */
  15. interface ExpressionBuilderInterface
  16. {
  17. /**
  18. * Method builds the raw SQL from the $expression that will not be additionally
  19. * escaped or quoted.
  20. *
  21. * @param ExpressionInterface $expression the expression to be built.
  22. * @param array $params the binding parameters.
  23. * @return string the raw SQL that will not be additionally escaped or quoted.
  24. */
  25. public function build(ExpressionInterface $expression, array &$params = []);
  26. }