Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
25 | class Statement |
||
26 | { |
||
27 | /** @var mixed */ |
||
28 | private $value; |
||
29 | |||
30 | /** @var array<int|string,mixed> */ |
||
31 | private array $args; |
||
32 | |||
33 | private bool $inlineWrap; |
||
34 | |||
35 | /** |
||
36 | * Statement constructor. |
||
37 | * |
||
38 | * @param mixed $value |
||
39 | * @param array<int|string,mixed> $args |
||
40 | * @param bool $closure Resolved value will be wrapped in a closure |
||
41 | */ |
||
42 | public function __construct($value, array $args = [], bool $closure = false) |
||
43 | { |
||
44 | $this->value = $value; |
||
45 | $this->args = $args; |
||
46 | $this->inlineWrap = $closure; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @return mixed |
||
51 | */ |
||
52 | public function getValue() |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * @return array<int|string,mixed> |
||
59 | */ |
||
60 | public function getArguments(): array |
||
61 | { |
||
62 | return $this->args; |
||
63 | } |
||
64 | |||
65 | public function isClosureWrappable(): bool |
||
68 | } |
||
69 | } |
||
70 |