You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
512 B

  1. <?php
  2. /**
  3. * @copyright NetMonsters <team@netmonsters.ru>
  4. * @link http://netmonsters.ru
  5. * @package Majestic
  6. * @subpackage db
  7. * @since 2010-02-19
  8. * @version SVN: $Id$
  9. * @filesource $URL$
  10. */
  11. class DbExpr
  12. {
  13. protected $expression;
  14. /**
  15. * @param string $expression
  16. * @return DbExpr
  17. */
  18. public function __construct($expression)
  19. {
  20. $this->expression = (string) $expression;
  21. }
  22. public function __toString()
  23. {
  24. return $this->expression;
  25. }
  26. }