Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Database\Query;
4
 
5
class Expression
6
{
7
    /**
8
     * The value of the expression.
9
     *
10
     * @var mixed
11
     */
12
    protected $value;
13
 
14
    /**
15
     * Create a new raw query expression.
16
     *
17
     * @param  mixed  $value
18
     * @return void
19
     */
20
    public function __construct($value)
21
    {
22
        $this->value = $value;
23
    }
24
 
25
    /**
26
     * Get the value of the expression.
27
     *
28
     * @return mixed
29
     */
30
    public function getValue()
31
    {
32
        return $this->value;
33
    }
34
 
35
    /**
36
     * Get the value of the expression.
37
     *
38
     * @return string
39
     */
40
    public function __toString()
41
    {
42
        return (string) $this->getValue();
43
    }
44
}