src/SQLParser/Node/ColRef.php 1 location
|
@@ 197-204 (lines=8) @@
|
| 194 |
|
* |
| 195 |
|
* @param VisitorInterface $visitor |
| 196 |
|
*/ |
| 197 |
|
public function walk(VisitorInterface $visitor) { |
| 198 |
|
$node = $this; |
| 199 |
|
$result = $visitor->enterNode($node); |
| 200 |
|
if ($result instanceof NodeInterface) { |
| 201 |
|
$node = $result; |
| 202 |
|
} |
| 203 |
|
return $visitor->leaveNode($node); |
| 204 |
|
} |
| 205 |
|
} |
| 206 |
|
|
src/SQLParser/Node/ConstNode.php 1 location
|
@@ 109-116 (lines=8) @@
|
| 106 |
|
* @param VisitorInterface $visitor |
| 107 |
|
* @return NodeInterface|null|string Can return null if nothing is to be done or a node that should replace this node, or NodeTraverser::REMOVE_NODE to remove the node |
| 108 |
|
*/ |
| 109 |
|
public function walk(VisitorInterface $visitor) { |
| 110 |
|
$node = $this; |
| 111 |
|
$result = $visitor->enterNode($node); |
| 112 |
|
if ($result instanceof NodeInterface) { |
| 113 |
|
$node = $result; |
| 114 |
|
} |
| 115 |
|
return $visitor->leaveNode($node); |
| 116 |
|
} |
| 117 |
|
} |
| 118 |
|
|
src/SQLParser/Node/Operator.php 1 location
|
@@ 103-110 (lines=8) @@
|
| 100 |
|
* @param VisitorInterface $visitor |
| 101 |
|
* @return NodeInterface|null|string Can return null if nothing is to be done or a node that should replace this node, or NodeTraverser::REMOVE_NODE to remove the node |
| 102 |
|
*/ |
| 103 |
|
public function walk(VisitorInterface $visitor) { |
| 104 |
|
$node = $this; |
| 105 |
|
$result = $visitor->enterNode($node); |
| 106 |
|
if ($result instanceof NodeInterface) { |
| 107 |
|
$node = $result; |
| 108 |
|
} |
| 109 |
|
return $visitor->leaveNode($node); |
| 110 |
|
} |
| 111 |
|
} |
| 112 |
|
|
src/SQLParser/Node/LimitNode.php 1 location
|
@@ 113-120 (lines=8) @@
|
| 110 |
|
* @param VisitorInterface $visitor |
| 111 |
|
* @return NodeInterface|null|string Can return null if nothing is to be done or a node that should replace this node, or NodeTraverser::REMOVE_NODE to remove the node |
| 112 |
|
*/ |
| 113 |
|
public function walk(VisitorInterface $visitor) { |
| 114 |
|
$node = $this; |
| 115 |
|
$result = $visitor->enterNode($node); |
| 116 |
|
if ($result instanceof NodeInterface) { |
| 117 |
|
$node = $result; |
| 118 |
|
} |
| 119 |
|
return $visitor->leaveNode($node); |
| 120 |
|
} |
| 121 |
|
} |
| 122 |
|
|
src/SQLParser/Node/Parameter.php 1 location
|
@@ 200-207 (lines=8) @@
|
| 197 |
|
* @param VisitorInterface $visitor |
| 198 |
|
* @return NodeInterface|null|string Can return null if nothing is to be done or a node that should replace this node, or NodeTraverser::REMOVE_NODE to remove the node |
| 199 |
|
*/ |
| 200 |
|
public function walk(VisitorInterface $visitor) { |
| 201 |
|
$node = $this; |
| 202 |
|
$result = $visitor->enterNode($node); |
| 203 |
|
if ($result instanceof NodeInterface) { |
| 204 |
|
$node = $result; |
| 205 |
|
} |
| 206 |
|
return $visitor->leaveNode($node); |
| 207 |
|
} |
| 208 |
|
|
| 209 |
|
/** |
| 210 |
|
* Returns whether the parameter can be discarded if provided value is null. |