colly_wyx
2018-04-27 74adf3a72663f151dc2c1b87ecb4ea4b0e080a50
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
<?php
 
/** SQL literal value
*/
class NotORM_Literal {
    protected $value = '';
    
    /** @var array */
    public $parameters = array();
    
    /** Create literal value
    * @param string
    * @param mixed parameter
    * @param mixed ...
    */
    function __construct($value) {
        $this->value = $value;
        $this->parameters = func_get_args();
        array_shift($this->parameters);
    }
    
    /** Get literal value
    * @return string
    */
    function __toString() {
        return $this->value;
    }
    
}