@@ 68-75 (lines=8) @@ | ||
65 | /** |
|
66 | * @return Expr |
|
67 | */ |
|
68 | private function createObjectNode(): Expr |
|
69 | { |
|
70 | if (!$this->useQueryBuilderFactory) { |
|
71 | return new StaticCall(new Name('ObjectNode'), 'create'); |
|
72 | } |
|
73 | ||
74 | return new MethodCall(new Variable('qb'), 'objectNode'); |
|
75 | } |
|
76 | ||
77 | /** |
|
78 | * @return Expr |
|
@@ 80-87 (lines=8) @@ | ||
77 | /** |
|
78 | * @return Expr |
|
79 | */ |
|
80 | private function createArrayNode(): Expr |
|
81 | { |
|
82 | if (!$this->useQueryBuilderFactory) { |
|
83 | return new StaticCall(new Name('ArrayNode'), 'create'); |
|
84 | } |
|
85 | ||
86 | return new MethodCall(new Variable('qb'), 'arrayNode'); |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * @param string|float|int|bool|null $value |