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.

27 lines
495 B

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