@@ 149-158 (lines=10) @@ | ||
146 | * |
|
147 | * @return MoufInstanceDescriptor |
|
148 | */ |
|
149 | public function toInstanceDescriptor(MoufManager $moufManager) |
|
150 | { |
|
151 | $instanceDescriptor = $moufManager->createInstance(get_called_class()); |
|
152 | $instanceDescriptor->getProperty('table')->setValue($this->table); |
|
153 | $instanceDescriptor->getProperty('column')->setValue($this->column); |
|
154 | $instanceDescriptor->getProperty('alias')->setValue($this->alias); |
|
155 | $instanceDescriptor->getProperty('direction')->setValue($this->direction); |
|
156 | ||
157 | return $instanceDescriptor; |
|
158 | } |
|
159 | ||
160 | /** |
|
161 | * Renders the object as a SQL string. |
@@ 144-153 (lines=10) @@ | ||
141 | * |
|
142 | * @return MoufInstanceDescriptor |
|
143 | */ |
|
144 | public function toInstanceDescriptor(MoufManager $moufManager) |
|
145 | { |
|
146 | $instanceDescriptor = $moufManager->createInstance(get_called_class()); |
|
147 | $instanceDescriptor->getProperty('subQuery')->setValue($this->subQuery->toInstanceDescriptor($moufManager)); |
|
148 | $instanceDescriptor->getProperty('alias')->setValue($this->alias); |
|
149 | $instanceDescriptor->getProperty('joinType')->setValue($this->joinType); |
|
150 | $instanceDescriptor->getProperty('refClause')->setValue(NodeFactory::nodeToInstanceDescriptor($this->refClause, $moufManager)); |
|
151 | ||
152 | return $instanceDescriptor; |
|
153 | } |
|
154 | ||
155 | /** |
|
156 | * Walks the tree of nodes, calling the visitor passed in parameter. |
@@ 151-160 (lines=10) @@ | ||
148 | * |
|
149 | * @return MoufInstanceDescriptor |
|
150 | */ |
|
151 | public function toInstanceDescriptor(MoufManager $moufManager) |
|
152 | { |
|
153 | $instanceDescriptor = $moufManager->createInstance(get_called_class()); |
|
154 | $instanceDescriptor->getProperty('table')->setValue($this->table); |
|
155 | $instanceDescriptor->getProperty('alias')->setValue($this->alias); |
|
156 | $instanceDescriptor->getProperty('joinType')->setValue($this->joinType); |
|
157 | $instanceDescriptor->getProperty('refClause')->setValue(NodeFactory::nodeToInstanceDescriptor($this->refClause, $moufManager)); |
|
158 | ||
159 | return $instanceDescriptor; |
|
160 | } |
|
161 | ||
162 | /** |
|
163 | * Renders the object as a SQL string. |