1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-08 23:26:49 +02:00
Files
php-dibi/dibi/libs/DibiLiteral.php
2015-10-06 12:10:21 +02:00

35 lines
448 B
PHP

<?php
/**
* This file is part of the "dibi" - smart database abstraction layer.
* Copyright (c) 2005 David Grudl (https://davidgrudl.com)
*/
/**
* SQL literal value.
*
* @package dibi
*/
class DibiLiteral extends DibiObject
{
/** @var string */
private $value;
public function __construct($value)
{
$this->value = (string) $value;
}
/**
* @return string
*/
public function __toString()
{
return $this->value;
}
}