Total Complexity | 5 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class Raw |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | protected $value; |
||
11 | |||
12 | /** |
||
13 | * @var mixed[] |
||
14 | */ |
||
15 | protected $bindings; |
||
16 | |||
17 | /** |
||
18 | * @param string $value |
||
19 | * @param mixed|mixed[] $bindings |
||
20 | */ |
||
21 | public function __construct($value, $bindings = []) |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Create a Raw instance with no bindings |
||
29 | * |
||
30 | * @param string $value |
||
31 | * @return self |
||
32 | */ |
||
33 | public static function val(string $value): self |
||
34 | { |
||
35 | return new self($value, []); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Returns the current bindings |
||
40 | * |
||
41 | * @return mixed[] |
||
42 | */ |
||
43 | public function getBindings(): array |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * Returns the current value held. |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getValue(): string |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | public function __toString() |
||
64 | } |
||
65 | } |
||
66 |