-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSQL.php
More file actions
57 lines (48 loc) · 997 Bytes
/
SQL.php
File metadata and controls
57 lines (48 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
namespace Harp\Query\SQL;
use Harp\Query\Parametrised;
/**
* @author Ivan Kerin <ikerin@gmail.com>
* @copyright (c) 2014 Clippings Ltd.
* @license http://spdx.org/licenses/BSD-3-Clause
*/
class SQL implements Parametrised
{
/**
* @var array
*/
protected $parameters;
/**
* @var string|Parametrised
*/
protected $content;
/**
* @param string|Parametrised $content
* @param array $parameters
*/
public function __construct($content, array $parameters = null)
{
$this->content = $content;
if ($parameters) {
$this->parameters = $parameters;
}
}
public function __toString()
{
return $this->content;
}
/**
* @return string|Parametrised
*/
public function getContent()
{
return $this->content;
}
/**
* @return array
*/
public function getParameters()
{
return $this->parameters;
}
}