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.
30 lines
512 B
30 lines
512 B
<?php
|
|
/**
|
|
* @copyright NetMonsters <team@netmonsters.ru>
|
|
* @link http://netmonsters.ru
|
|
* @package Majestic
|
|
* @subpackage db
|
|
* @since 2010-02-19
|
|
* @version SVN: $Id$
|
|
* @filesource $URL$
|
|
*/
|
|
|
|
class DbExpr
|
|
{
|
|
|
|
protected $expression;
|
|
|
|
/**
|
|
* @param string $expression
|
|
* @return DbExpr
|
|
*/
|
|
public function __construct($expression)
|
|
{
|
|
$this->expression = (string) $expression;
|
|
}
|
|
|
|
public function __toString()
|
|
{
|
|
return $this->expression;
|
|
}
|
|
}
|