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