for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Pomm's Foundation package.
*
* (c) 2014 - 2017 Grégoire HUBERT <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PommProject\Foundation;
/**
* RowString
* Expression escaper.
* This type allows to pass raw expressions as is to the database. Useful to
* call functions or database expressions.
* @package Foundation
* @copyright 2014 - 2017 Grégoire HUBERT
* @author Grégoire HUBERT
* @license X11 {@link http://opensource.org/licenses/mit-license.php}
class RawString
{
protected $expression;
* __construct
* Create a RawString.
* @param string $expression
public function __construct($expression)
$this->expression = $expression;
}
* __toString
* String cast this instance.
* @return string
public function __toString()
return $this->expression;