Upload files to 'includes'
This commit is contained in:
36
includes/NullParser.php
Normal file
36
includes/NullParser.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of Aura for PHP.
|
||||
*
|
||||
* @license https://opensource.org/licenses/MIT MIT
|
||||
*
|
||||
*/
|
||||
namespace Aura\Sql\Parser;
|
||||
|
||||
/**
|
||||
*
|
||||
* A parser/rebuilder that does nothing at all; use this when your placeholders
|
||||
* and bound-values are already perfectly matched.
|
||||
*
|
||||
* @package Aura.Sql
|
||||
*
|
||||
*/
|
||||
class NullParser implements ParserInterface
|
||||
{
|
||||
/**
|
||||
*
|
||||
* Leaves the query and parameters alone.
|
||||
*
|
||||
* @param string $statement The query statement string.
|
||||
*
|
||||
* @param array $values Bind these values into the query.
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
*/
|
||||
public function rebuild($statement, array $values = [])
|
||||
{
|
||||
return [$statement, $values];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user