1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-18 11:51:18 +02:00

removed IDibiVariable & DibiVariable, replaced with DibiLiteral

This commit is contained in:
David Grudl
2012-01-12 00:43:06 +01:00
parent a8672bb6ff
commit 2a5934c385
4 changed files with 43 additions and 29 deletions

40
dibi/libs/DibiLiteral.php Normal file
View File

@@ -0,0 +1,40 @@
<?php
/**
* This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/
/**
* SQL literal value.
*
* @author David Grudl
*/
class DibiLiteral extends DibiObject
{
/** @var string */
private $value;
public function __construct($value)
{
$this->value = (string) $value;
}
/**
* @return string
*/
public function __toString()
{
return $this->value;
}
}